mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
fix: battery prearm check ignored when CBRK_SUPPLY_CHK is disabled
This commit is contained in:
committed by
Lorenz Meier
parent
0761d220b1
commit
641f2f856b
@@ -1057,7 +1057,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 (!status_flags->circuit_breaker_engaged_power_check && battery->warning >= battery_status_s::BATTERY_WARNING_LOW) {
|
||||
preflight_ok = false;
|
||||
|
||||
if (reportFailures) {
|
||||
|
||||
Reference in New Issue
Block a user