vtol_att_control: use transition switch instead of aux1

Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
Roman 2016-07-19 13:11:15 +02:00 committed by Lorenz Meier
parent 499d362b8b
commit 9ece090dbe
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ VtolAttitudeControl::handle_command()
bool
VtolAttitudeControl::is_fixed_wing_requested()
{
bool to_fw = _manual_control_sp.aux1 > 0.0f;
bool to_fw = _manual_control_sp.transition_switch == manual_control_setpoint_s::SWITCH_POS_ON;
// listen to transition commands if not in manual
if (!_v_control_mode.flag_control_manual_enabled) {