Andrew Tridgell
ce27ec2276
AP_BattMonitor: fixed battery remaining of sum battery
...
and move to common function for update_consumed()
3 years ago
murata
9d321c5c31
AP_BattMonitor: Change from division to multiplication
3 years ago
Josh Henderson
ca568953d9
AP_BattMonitor: capacity_remaining_pct add checks for healthy status and has_current
3 years ago
Willian Galvani
207723319b
AP_BattMonitor_Backend: change capacity_remaining_pct() to a bool
4 years ago
Iampete1
8ea9803193
AP_BatteryMoniter: fix mah to wah conversion
4 years ago
Peter Barker
00a8a8fe8e
AP_BattMonitor: use enum class For Battery Failsafe
4 years ago
Michael du Breuil
400220e210
AP_BattMonitor: Rearrange arming check order
5 years ago
Michael du Breuil
ee3fcf49c6
AP_BattMonitor: Detect bad configuration of failsafes
6 years ago
Andrew Tridgell
88111ef81a
AP_BattMonitor: reset failsafe flags when we reset battery remaining
6 years ago
Andrew Tridgell
11518857b6
AP_BattMonitor: added reset_remaining() API
...
used to allow battery swap before takeoff
6 years ago
Michael du Breuil
7b7bdd9bf8
AP_BattMonitor: Prevent capacity_remaining_pct from returning a large
...
value when low
6 years ago
Andrew Tridgell
9e17275488
AP_BattMonitor: fixed build warnings
6 years ago
Michael du Breuil
0137d6543f
AP_BattMonitor: Allow AP_BattMonitor to run arming checks
6 years ago
Michael du Breuil
deaa5046cb
AP_BattMonitor: Split the failsafe conditions from their timers
6 years ago
Michael du Breuil
1bb4f07365
AP_BattMonitor: Move failsafe checks to the backend
6 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
6cbeb73d1b
AP_BattMonitor: NFC rename functions and variables to match their functionality
7 years ago
Michael du Breuil
8712fbd55d
AP_BattMonitor: Move per battery params into a containing class
7 years ago
Leonard Hall
8709fe58ec
AP_BattMonitor: resistance learning
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
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
8 years ago
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.
8 years ago
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.
10 years ago
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.
10 years ago
Randy Mackay
c6440a48b3
BattMon_Backend: add init and set_capacity methods
10 years ago
Randy Mackay
39dbf05c8f
BattMon_Backend: create backend class
10 years ago
Andrew Tridgell
cb037f3416
AP_RangeFinder: new rangefinder API ready for its first backend
...
the backends are setup to have just the minimum functionality needed
for a rangefinder, with all of the higher level logic in the
frontend. This should make writing a new backend easier
11 years ago
Niels Joubert
879eb5936b
AP_MATH: Adding WGS GPS conversions, CRC16 checks, and double-precision Vectors and Matrices
11 years ago
Andrew Tridgell
d67ad2c7ee
AP_Notify: added missing files
12 years ago
Andrew Tridgell
495c4bbbbe
AP_Notify: simplify interface to avoid timers and external calls
...
this changes AP_Notify to use updates via notify.update() at 50Hz,
avoiding the need for the 1kHz timer. It also creates a parent class
for ToshibaLED so that the I2C and PX4 ToshibaLED drivers can be
abstracted out.
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
12 years ago
Randy Mackay
2658cda4bc
Toshiba_LED_PX4: local #defines for led brightness
12 years ago
Randy Mackay
0c1db12538
AP_Notify: add ToshibaLED_PX4
12 years ago
Randy Mackay
a52b1831ca
AP_Notify: make flags static variable
12 years ago
Randy Mackay
54007854a9
Notify: add ToshibaLED
12 years ago