Refactored to work with new battery_status module

This commit is contained in:
Timothy Scott
2019-11-07 15:59:12 +01:00
committed by Julian Oes
parent d7bb5d46bb
commit 993fa5bd37
35 changed files with 1101 additions and 1837 deletions
@@ -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;