Andrew Tridgell
60f582a6b2
AP_BattMonitor: support I2C INA231 battery monitor
2024-07-11 09:26:17 +10:00
Andrew Tridgell
6713a203f0
AP_BattMonitor: added temperature reading to INA2xx driver
2024-02-06 11:26:05 +11:00
Andrew Tridgell
e9fc3ab570
AP_BattMonitor: added SHUNT parameter to INS2xx driver
...
some vendors want different shunt resistors
2023-10-08 11:04:21 +11:00
Andrew Tridgell
c8b2622f45
AP_BattMonitor: fixed reset_remaining() for INAxxx and LTC2946
...
these can use the generic reset_remaining() call in the backend
2023-08-10 07:43:25 +10:00
Andy Piper
74a70e52b8
AP_BattMonitor: remove unsued variables
2023-07-13 11:02:40 +10:00
Andrew Tridgell
2a3faf5dff
AP_BattMonitor: allow max amps to be configured on INA2XX
...
this allows for higer current ranges with lower resolution
2023-05-20 09:54:29 +10:00
Andrew Tridgell
e2041e10b5
AP_BattMonitor: auto-probe INA2XX address if address is zero
...
this makes life easier for users who don't know which device they have
2023-05-10 18:15:52 +10:00
Andrew Tridgell
5227b99a39
AP_BattMonitor: support INA228 and INA238 battery monitor
...
I2C monitors with similar functionality to INA226
2023-05-10 18:15:52 +10:00
Peter Barker
85501f8219
AP_BattMonitor: add defines for all battery backends
2023-03-10 08:48:24 +11:00
Andrew Tridgell
93ee9a4ac1
AP_BattMonitor: allow INA2xx battery monitors to be powered after boot
...
the device doesn't show up till main battery is connected, so we need
this change to allow for separate avionics battery and main battery
with avionics battery powered on first
2022-06-24 11:13:16 +10: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