forked from Archive/PX4-Autopilot
vtol_att_control: use transition switch instead of aux1
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
499d362b8b
commit
9ece090dbe
|
@ -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…
Reference in New Issue