mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 10:57:35 +08:00
commander: arming with critical battery is not allowed
This commit is contained in:
committed by
Lorenz Meier
parent
3b85ac05e1
commit
03a762f92e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user