Peter Barker
1f4c129341
AP_BattMonitor: add and use AP_BATTERY_ENABLED
2024-02-06 11:01:02 +11:00
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
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
Peter Barker
7aea21bd40
AP_BattMonitor: log external temperature if available
2023-09-05 10:31:24 +10:00
Tom Pittenger
21ead4e8e3
AP_Battery: add param _ESC_ID to write to ESC_Telem
2023-08-22 16:14:36 -07:00
Iampete1
722ec745e9
AP_BattMoniter: don't allow equal low and critical FS thresholds
2023-01-17 10:36:09 +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
9a6fb19208
AP_BattMonitor: report arming unhealthy if backend unhealthy
...
important for i2c based battery backends
2022-06-24 11:13:16 +10:00
Andrew Tridgell
ce27ec2276
AP_BattMonitor: fixed battery remaining of sum battery
...
and move to common function for update_consumed()
2022-03-23 20:21:38 +11:00
murata
9d321c5c31
AP_BattMonitor: Change from division to multiplication
2022-03-16 18:41:52 +11:00
Josh Henderson
ca568953d9
AP_BattMonitor: capacity_remaining_pct add checks for healthy status and has_current
2021-10-07 22:16:02 +11:00
Willian Galvani
207723319b
AP_BattMonitor_Backend: change capacity_remaining_pct() to a bool
2021-09-08 17:17:41 +10:00
Iampete1
8ea9803193
AP_BatteryMoniter: fix mah to wah conversion
2021-06-22 09:19:40 +10:00
Peter Barker
00a8a8fe8e
AP_BattMonitor: use enum class For Battery Failsafe
2020-12-07 15:20:14 +11:00
Michael du Breuil
400220e210
AP_BattMonitor: Rearrange arming check order
2020-06-02 09:55:36 +10:00
Michael du Breuil
ee3fcf49c6
AP_BattMonitor: Detect bad configuration of failsafes
2019-08-26 18:57:59 +01:00
Andrew Tridgell
88111ef81a
AP_BattMonitor: reset failsafe flags when we reset battery remaining
2019-06-25 09:56:25 +10:00
Andrew Tridgell
11518857b6
AP_BattMonitor: added reset_remaining() API
...
used to allow battery swap before takeoff
2019-06-25 09:56:25 +10:00
Michael du Breuil
7b7bdd9bf8
AP_BattMonitor: Prevent capacity_remaining_pct from returning a large
...
value when low
2019-05-13 15:46:38 +10:00
Andrew Tridgell
9e17275488
AP_BattMonitor: fixed build warnings
2018-10-17 12:54:22 +11:00
Michael du Breuil
0137d6543f
AP_BattMonitor: Allow AP_BattMonitor to run arming checks
2018-10-09 00:44:46 +01:00
Michael du Breuil
deaa5046cb
AP_BattMonitor: Split the failsafe conditions from their timers
2018-10-09 00:44:46 +01:00
Michael du Breuil
1bb4f07365
AP_BattMonitor: Move failsafe checks to the backend
2018-10-09 00:44:46 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
6cbeb73d1b
AP_BattMonitor: NFC rename functions and variables to match their functionality
2018-03-03 17:16:34 +00:00
Michael du Breuil
8712fbd55d
AP_BattMonitor: Move per battery params into a containing class
2018-01-17 22:21:55 +00:00
Leonard Hall
8709fe58ec
AP_BattMonitor: resistance learning
2017-06-06 14:57:04 +09:00
Michael du Breuil
22ab8de4d2
AP_BattMonitor: SMBus: Fetch pack capacity
2017-04-28 00:36:10 +01:00
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.
2017-04-28 00:36:10 +01:00
Francisco Ferreira
3a89421c70
AP_BattMonitor: remove Bebop fixed capacity
...
Bebop, Bebop2 and Disco all use this class but it was always setting the capacity to the Bebop one, overriding the parameter
2016-10-24 09:24:11 -03:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Gustavo Jose de Sousa
ff20124f1d
AP_BattMonitor: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:28:42 +10:00
Przemek Lekston
90378b21da
AP_BattMonitor: Fix battery monitor Floating Point Exception in SITL
...
Adds a sanity check to avoid division by zero when BATT_CAPACITY is set to 0.
2015-06-29 16:42:52 +10:00
Randy Mackay
c6440a48b3
BattMon_Backend: add init and set_capacity methods
2015-04-11 14:10:19 +09:00
Randy Mackay
39dbf05c8f
BattMon_Backend: create backend class
2014-12-31 15:22:43 +09:00