Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Tridgell f0f19ce8fb AP_BattMonitor: fixed battery remaining of sum battery
and move to common function for update_consumed()
2022-03-28 20:53:56 +11:00
Andrew Tridgell 75dfa6bae4 AP_BattMonitor: support other INA2xx battery monitors
added parameters for I2C bus and address. Tested on INA231 and INA226

This allows any 2M flash board to use an INA2xx battery monitor
2021-11-05 14:30:43 +11:00