Browse Source

AP_BattMonitor: report arming unhealthy if backend unhealthy

important for i2c based battery backends
apm_2208
Andrew Tridgell 3 years ago
parent
commit
9a6fb19208
  1. 1
      libraries/AP_BattMonitor/AP_BattMonitor_Backend.cpp

1
libraries/AP_BattMonitor/AP_BattMonitor_Backend.cpp

@ -184,6 +184,7 @@ bool AP_BattMonitor_Backend::arming_checks(char * buffer, size_t buflen) const @@ -184,6 +184,7 @@ bool AP_BattMonitor_Backend::arming_checks(char * buffer, size_t buflen) const
result = result && update_check(buflen, buffer, critical_capacity, "critical capacity failsafe");
result = result && update_check(buflen, buffer, fs_capacity_inversion, "capacity failsafe critical > low");
result = result && update_check(buflen, buffer, fs_voltage_inversion, "voltage failsafe critical > low");
result = result && update_check(buflen, buffer, !_state.healthy, "unhealthy");
return result;
}

Loading…
Cancel
Save