mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 03:49:12 +08:00
vtol_att_control: use transition switch instead of aux1
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -481,7 +481,7 @@ VtolAttitudeControl::handle_command()
|
|||||||
bool
|
bool
|
||||||
VtolAttitudeControl::is_fixed_wing_requested()
|
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
|
// listen to transition commands if not in manual
|
||||||
if (!_v_control_mode.flag_control_manual_enabled) {
|
if (!_v_control_mode.flag_control_manual_enabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user