Browse Source

AC_AutoTune: init angle dwell test with proper init method

gps-1.3.1
Bill Geyer 3 years ago committed by Bill Geyer
parent
commit
790a77d44a
  1. 4
      libraries/AC_AutoTune/AC_AutoTune_Heli.cpp

4
libraries/AC_AutoTune/AC_AutoTune_Heli.cpp

@ -162,11 +162,11 @@ void AC_AutoTune_Heli::test_init() @@ -162,11 +162,11 @@ void AC_AutoTune_Heli::test_init()
if (!is_equal(start_freq,stop_freq)) {
// initialize determine gain function
freqresp_angle.init(AC_AutoTune_FreqResp::InputType::SWEEP);
dwell_test_init(stop_freq);
angle_dwell_test_init(stop_freq);
} else {
// initialize determine gain function
freqresp_angle.init(AC_AutoTune_FreqResp::InputType::DWELL);
dwell_test_init(start_freq);
angle_dwell_test_init(start_freq);
}
// TODO add time limit for sweep test

Loading…
Cancel
Save