Commit Graph

12 Commits

Author SHA1 Message Date
Randy Mackay dfd22aba32 AP_BattMonitor: support logging state-of-health percentage
Only DroneCAN backend implements this feature for now
2024-01-10 18:38:25 +11:00
Andrew Tridgell c48feefe23 AP_BattMonitor: fixed battery percentage with aux info
when we have aux battery information we had assumed the CAN device
would provide the battery remaining percentage. We should obey the "do
not use CAN SoC" with or without an AUX message

This fixes CAN battery monitors with a cell monitor
2023-11-27 13:02:46 +11:00
Andrew Tridgell aaa4e0268a AP_BattMonitor: cope with InfoAux without nominal voltage
allows for reset of remaining charge from GCS or lua
2023-10-31 11:09:51 +11:00
Andrew Tridgell 532ab09c72 AP_BattMonitor: added option allowing InfoAux to be from different node
this allows the CAN node providing cell voltages to be a different CAN
node from the node providing the base current/voltage
2023-10-31 11:09:51 +11:00
Andrew Tridgell 7ce9febf9f AP_BattMonitor: use a reference for AP::battery()
saves a small amount of flash
2023-10-31 11:09:51 +11:00
Iampete1 816b92346e AP_BattMonitor: DroneCAN: always have consumed energy 2023-10-17 11:13:26 +11:00
Andrew Tridgell 595748d7ff AP_BattMonitor: fixes for macos CAN SITL build 2023-08-29 15:09:48 +10:00
Iampete1 9b54dee7a6 AP_BattMonitor: DroneCAN: allow battery reset if not using CAN SoC 2023-06-27 11:38:15 +10:00
Andrew Tridgell ab8049f8e9 AP_BattMonitor: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 11a2f5ed9c AP_BattMonitor: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 017543f6e6 AP_BattMonitor: update header references 2023-04-11 10:31:31 +10:00
Andrew Tridgell 63e67db516 AP_BattMonitor: rename UAVCAN drivers to DroneCAN 2023-04-11 10:31:31 +10:00