Browse Source

AC_AutoTune: desired-ground-idle replaces spin-when-armed

master
Leonard Hall 6 years ago committed by Randy Mackay
parent
commit
4edc464b83
  1. 2
      libraries/AC_AutoTune/AC_AutoTune.cpp

2
libraries/AC_AutoTune/AC_AutoTune.cpp

@ -352,7 +352,7 @@ void AC_AutoTune::run() @@ -352,7 +352,7 @@ void AC_AutoTune::run()
// if not auto armed or motor interlock not enabled set throttle to zero and exit immediately
// this should not actually be possible because of the init() checks
if (!motors->armed() || !motors->get_interlock()) {
motors->set_desired_spool_state(AP_Motors::DESIRED_SPIN_WHEN_ARMED);
motors->set_desired_spool_state(AP_Motors::DESIRED_GROUND_IDLE);
attitude_control->set_throttle_out_unstabilized(0.0f, true, 0);
pos_control->relax_alt_hold_controllers(0.0f);
return;

Loading…
Cancel
Save