mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
commander: add missing manual modes
We prevent arming when in a "manual" mode with throttle high. However, POSCTL and ALTCTL were missing.
This commit is contained in:
parent
300bc0a332
commit
283a57054a
@ -839,7 +839,9 @@ Commander::handle_command(vehicle_status_s *status_local, const vehicle_command_
|
||||
|
||||
// Refuse to arm if in manual with non-zero throttle
|
||||
if (cmd_arms
|
||||
&& (status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_MANUAL
|
||||
&& (status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_POSCTL
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_ALTCTL
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_MANUAL
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_ACRO
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_STAB
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_RATTITUDE)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user