Browse Source

vtol_att_control: use transition switch instead of aux1

Signed-off-by: Roman <bapstroman@gmail.com>
sbg
Roman 9 years ago committed by Lorenz Meier
parent
commit
9ece090dbe
  1. 2
      src/modules/vtol_att_control/vtol_att_control_main.cpp

2
src/modules/vtol_att_control/vtol_att_control_main.cpp

@ -481,7 +481,7 @@ VtolAttitudeControl::handle_command() @@ -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) {

Loading…
Cancel
Save