forked from Archive/PX4-Autopilot
Commander: trigger warning when arming denied due to check failure
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
d330d47495
commit
6e15dd5328
|
@ -598,6 +598,9 @@ transition_result_t Commander::arm(arm_disarm_reason_t calling_reason, bool run_
|
|||
|
||||
if (!_health_and_arming_checks.canArm(_vehicle_status.nav_state)) {
|
||||
tune_negative(true);
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Arming denied: Resolve system health failures first\t");
|
||||
events::send(events::ID("commander_arm_denied_resolve_failures"), {events::Log::Critical, events::LogInternal::Info},
|
||||
"Arming denied: Resolve system health failures first");
|
||||
return TRANSITION_DENIED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue