mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 22:20:35 +08:00
commander: try to fix arm authorization spamming
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -594,7 +594,7 @@ transition_result_t Commander::arm(arm_disarm_reason_t calling_reason, bool run_
|
||||
return TRANSITION_DENIED;
|
||||
}
|
||||
|
||||
_health_and_arming_checks.update();
|
||||
_health_and_arming_checks.update(false, true);
|
||||
|
||||
if (!_health_and_arming_checks.canArm(_vehicle_status.nav_state)) {
|
||||
tune_negative(true);
|
||||
|
||||
Reference in New Issue
Block a user