mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +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 {
|
||||
|
||||
@@ -137,7 +137,7 @@ private:
|
||||
|
||||
uORB::PublicationMulti<input_rc_s> _rc_pub{ORB_ID(input_rc)};
|
||||
|
||||
Battery1 _battery;
|
||||
Battery _battery;
|
||||
|
||||
int32_t _rssi;
|
||||
battery_state _bstate;
|
||||
|
||||
Reference in New Issue
Block a user