Arjun Vinod
9d8cad4eea
AP_BattMonitor: fixed typos
6 years ago
Arjun Vinod
ed8dff8af7
AP_BattMonitor: fixed SAFETY_STATUS register
6 years ago
murata
3ec733d4f8
AP_BattMonitor: Aggregate the commands defined in the SMBUS specification.
...
AP_BattMonitor: Aggregate the commands defined in the SMBUS specification.
7 years ago
Michael du Breuil
8712fbd55d
AP_BattMonitor: Move per battery params into a containing class
7 years ago
Michael du Breuil
0cee2f2896
AP_BattMonitor: Require all backends to provide init
7 years ago
Michael du Breuil
3dd47bff8b
AP_BattMonitor: Allow generic SMBus batteries to not have cell voltages
8 years ago
Michael du Breuil
f026438f22
AP_BattMonitor: Fetch remaining capacity
8 years ago
Michael du Breuil
22ab8de4d2
AP_BattMonitor: SMBus: Fetch pack capacity
8 years ago
Michael du Breuil
f919c409bb
AP_BattMonitor: Remove redundant state copy
...
Every backend stored a instance reference, which wasn't used in most locations
which is redundant given that the state already tracks the instance for us as
well.
8 years ago
Michael du Breuil
3ab3face9b
AP_BattMonitor: SMBus: Read serial number
8 years ago
Michael du Breuil
e0d49e6d84
AP_BattMonitor: Use a unified SMBus temperature interface
8 years ago
Michael du Breuil
9c3b97347a
AP_BattMonitor: Unify read_word interface
8 years ago
Michael du Breuil
3319c3ccdc
AP_BattMonitor: Use a common PEC helper
8 years ago
Michael du Breuil
043b93d643
AP_BattMonitor: Maxell support temperature
8 years ago
Michael du Breuil
de02bd52ed
AP_BattMonitor: SMBus_Maxell request voltages
8 years ago
Randy Mackay
dcc4f69f7c
AP_BattMonitor: confirm pec support before attempting to read voltage
...
Previously we checked PEC support continuously at 10hz. With this change PEC support (or lack of support) is determined first before we try to read from the battery. Once determined, we do not repeat the checks.
Also simplified logic to determine PEC support based on version (should have no functional effect)
Also renamed get_pec_support to check_pec_support
Also renamed _pec_confirm to _pec_confirmed
8 years ago
Randy Mackay
884892be16
AP_BattMonitor: const some temp variables
...
Also other minor changes in response to peer review
8 years ago
Tatsuya Yamaguchi
6b4a46d467
AP_BattMonitor: fix to use the return value of get_pec_support
8 years ago
Tatsuya Yamaguchi
b052f96f6c
AP_BattMonitor: check a PEC support using SpecificationInfo
8 years ago
Tatsuya Yamaguchi
3e445fd4b8
AP_BattMonitor: add Maxell Battery support
8 years ago