forked from Archive/PX4-Autopilot
commander: arming with critical battery is not allowed
This commit is contained in:
parent
29b0043455
commit
6201fb5641
|
@ -1044,7 +1044,7 @@ int preflight_check(struct vehicle_status_s *status, orb_advert_t *mavlink_log_p
|
|||
}
|
||||
}
|
||||
|
||||
if (battery->warning == battery_status_s::BATTERY_WARNING_LOW) {
|
||||
if (battery->warning >= battery_status_s::BATTERY_WARNING_LOW) {
|
||||
preflight_ok = false;
|
||||
|
||||
if (reportFailures) {
|
||||
|
|
Loading…
Reference in New Issue