From 9ece090dbe95b4f5074c0514fc427e7962953fb5 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 19 Jul 2016 13:11:15 +0200 Subject: [PATCH] vtol_att_control: use transition switch instead of aux1 Signed-off-by: Roman --- src/modules/vtol_att_control/vtol_att_control_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/vtol_att_control/vtol_att_control_main.cpp b/src/modules/vtol_att_control/vtol_att_control_main.cpp index 57e0a98170..330c80821b 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.cpp +++ b/src/modules/vtol_att_control/vtol_att_control_main.cpp @@ -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) {