failsafe framework: inform about failsafe action

This commit is contained in:
Matthias Grob 2024-03-27 19:23:32 +01:00
parent 0f9531a526
commit 416b6a35a4

View File

@ -228,10 +228,10 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
/* EVENT
* @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::Log::Critical, events::LogInternal::Warning},
"Failsafe activated: Autopilot disengaged", mavlink_mode);
"Failsafe activated: Autopilot disengaged, switching to {2}", mavlink_mode, failsafe_action);
}
} else {