mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
failsafe framework: inform about failsafe action
This commit is contained in:
@@ -228,10 +228,10 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
|
|||||||
/* EVENT
|
/* EVENT
|
||||||
* @type append_health_and_arming_messages
|
* @type append_health_and_arming_messages
|
||||||
*/
|
*/
|
||||||
events::send<uint32_t>(
|
events::send<uint32_t, events::px4::enums::failsafe_action_t>(
|
||||||
events::ID("commander_failsafe_enter_generic"),
|
events::ID("commander_failsafe_enter_generic"),
|
||||||
{events::Log::Critical, events::LogInternal::Warning},
|
{events::Log::Critical, events::LogInternal::Warning},
|
||||||
"Failsafe activated: Autopilot disengaged", mavlink_mode);
|
"Failsafe activated: Autopilot disengaged, switching to {2}", mavlink_mode, failsafe_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user