mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Generator: Make sensor unhealthy msg consistent with other sensors
This commit is contained in:
parent
6a804c3a09
commit
c96ca2483e
@ -116,7 +116,7 @@ bool AP_Generator_IE_FuelCell::pre_arm_check(char *failmsg, uint8_t failmsg_len)
|
|||||||
{
|
{
|
||||||
// Refuse arming if not healthy
|
// Refuse arming if not healthy
|
||||||
if (!healthy()) {
|
if (!healthy()) {
|
||||||
strncpy(failmsg, "Driver not healthy", failmsg_len);
|
strncpy(failmsg, "Not healthy", failmsg_len);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -150,7 +150,7 @@ void AP_Generator_IE_FuelCell::check_status()
|
|||||||
if (!healthy() && !_health_warn_sent) {
|
if (!healthy() && !_health_warn_sent) {
|
||||||
// Don't spam GCS with unhealthy message
|
// Don't spam GCS with unhealthy message
|
||||||
_health_warn_sent = true;
|
_health_warn_sent = true;
|
||||||
gcs().send_text(MAV_SEVERITY_ALERT, "Generator: Driver not healthy");
|
gcs().send_text(MAV_SEVERITY_ALERT, "Generator: Not healthy");
|
||||||
|
|
||||||
} else if (healthy()) {
|
} else if (healthy()) {
|
||||||
_health_warn_sent = false;
|
_health_warn_sent = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user