AP_Arming: added more info to battery arming failure

This commit is contained in:
Tom Pittenger 2016-03-14 09:04:52 -07:00
parent b6378e2827
commit 5872512d85
1 changed files with 4 additions and 1 deletions

View File

@ -366,7 +366,10 @@ bool AP_Arming::battery_checks(bool report)
for (int i = 0; i < AP_BATT_MONITOR_MAX_INSTANCES; i++) {
if ((_min_voltage[i] > 0.0f) && (_battery.voltage(i) < _min_voltage[i])) {
if (report) {
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "PreArm: Battery %d voltage below minimum", i);
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "PreArm: Battery %d voltage %.1f below minimum %.1f",
i+1,
(double)_battery.voltage(i),
(double)_min_voltage[i]);
}
return false;
}