mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
address review comments
This commit is contained in:
committed by
Matthias Grob
parent
d44991f33a
commit
fa168c4d4f
@@ -240,7 +240,7 @@ void BatteryChecks::checkAndReport(const Context &context, Report &reporter)
|
||||
log_level, "Critical battery");
|
||||
|
||||
if (reporter.mavlink_log_pub()) {
|
||||
mavlink_log_warning(reporter.mavlink_log_pub(), "Critical battery\t");
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Critical battery\t");
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
@@ -238,8 +238,6 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
|
||||
{events::Log::Critical, events::LogInternal::Warning},
|
||||
"Failsafe activated: Autopilot disengaged, switching to {2}", mavlink_mode, failsafe_action);
|
||||
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
|
||||
|
||||
} else {
|
||||
/* EVENT
|
||||
* @type append_health_and_arming_messages
|
||||
@@ -248,8 +246,6 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
|
||||
events::ID("commander_failsafe_enter_generic"),
|
||||
{events::Log::Critical, events::LogInternal::Warning},
|
||||
"Failsafe activated: switching to {2}", mavlink_mode, failsafe_action);
|
||||
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
|
||||
}
|
||||
|
||||
} else {
|
||||
@@ -291,13 +287,15 @@ void FailsafeBase::notifyUser(uint8_t user_intended_mode, Action action, Action
|
||||
events::ID("commander_failsafe_enter"),
|
||||
{events::Log::Critical, events::LogInternal::Warning},
|
||||
"{3}: switching to {2}", mavlink_mode, failsafe_action, failsafe_cause);
|
||||
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
|
||||
}
|
||||
}
|
||||
|
||||
if (action != Action::Warn) {
|
||||
mavlink_log_critical(&_mavlink_log_pub, "Failsafe activated\t");
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
#endif /* EMSCRIPTEN_BUILD */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user