mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 07:41:36 +08:00
Refactored to work with new battery_status module
This commit is contained in:
committed by
Julian Oes
parent
d7bb5d46bb
commit
993fa5bd37
@@ -420,7 +420,7 @@ Syslink::handle_message(syslink_message_t *msg)
|
||||
}
|
||||
|
||||
/* With the usb plugged in and battery disconnected, it appears to be charged. The voltage check ensures that a battery is connected */
|
||||
else if (powered && !charging && _battery_status.voltage_filtered_v > 3.7f) {
|
||||
else if (powered && !charging && vbat > 3.7f) {
|
||||
_bstate = BAT_CHARGED;
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user