VTOL/TECS: publish transition throttle after transition until tecs is initialized and fw pos ctl is publishing att setpoint

This commit is contained in:
Andreas Antener
2016-02-18 18:55:56 +01:00
committed by Lorenz Meier
parent fa52aa322a
commit 3773eaad99
6 changed files with 87 additions and 31 deletions
@@ -169,6 +169,7 @@ void Standard::update_vtol_state()
// we can turn off the multirotor motors now
_flag_enable_mc_motors = false;
// don't set pusher throttle here as it's being ramped up elsewhere
_trans_finished_ts = hrt_absolute_time();
}
} else if (_vtol_schedule.flight_mode == TRANSITION_TO_MC) {
@@ -316,6 +317,12 @@ void Standard::fill_actuator_outputs()
}
}
void
Standard::waiting_on_fw_ctl()
{
_v_att_sp->thrust = _pusher_throttle;
};
/**
* Disable all multirotor motors when in fw mode.
*/