mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
commander arm check throttle include rattitude
This commit is contained in:
committed by
Lorenz Meier
parent
93fb02bfa3
commit
cdd317ba38
@@ -851,8 +851,9 @@ bool handle_command(struct vehicle_status_s *status_local, const struct safety_s
|
||||
// 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_ACRO
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_STAB
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_ACRO)
|
||||
|| status_local->nav_state == vehicle_status_s::NAVIGATION_STATE_RATTITUDE)
|
||||
&& (sp_man.z > 0.1f)) {
|
||||
|
||||
mavlink_log_critical(&mavlink_log_pub, "Arming DENIED. Manual throttle non-zero.");
|
||||
|
||||
Reference in New Issue
Block a user