Peter Barker
00a8a8fe8e
AP_BattMonitor: use enum class For Battery Failsafe
4 years ago
Tom Pittenger
171a10e117
AP_BattMonitor: Add support for multiple UAVCAN batteries from a single node
4 years ago
Gone4Dirt
836717c0af
AP_BattMonitor: Add support for AP_Generator frontend-backend
4 years ago
Nick Belanger
dbe5b90398
AP_BattMonitor: Adding driver for Rotoye Batmon equipped smart batteries
4 years ago
Peter Barker
2e3ba2a4d2
AP_BattMonitor: move battery type enumeration out of parameters object
5 years ago
Peter Barker
8e708a0a32
AP_BattMonitor: add backend for generator supply
5 years ago
Randy Mackay
3e519b25a4
AP_BattMonitor: fix comments re voltage scaling
5 years ago
Randy Mackay
cc6298e7ac
AP_BattMonitor: SMBus Generic reads up to 12 cell voltages
...
Checks for the highest cell for 15 seconds and then reduces the cell voltage calls to cover only those cells that actually exist
also renames SMBus _last_cell_update_us
5 years ago
Randy Mackay
4ea565e4ed
AP_BattMonitor: Maxell driver inherits from SMBus_Generic
5 years ago
Randy Mackay
f869cd9aa6
AP_BattMonitor: complete rename of SMBus_Maxell to Generic
5 years ago
Randy Mackay
300c0aafb1
AP_BattMonitor: add cycle count for smbus batteries
5 years ago
Andrew Tridgell
fbe69ba9ab
AP_BattMonitor: support selective enable of SMBUS and fuel battery monitors
5 years ago
James
e474b7dcfe
AP_BattMonitor: add PWM Fuel Level Sensor
...
this sensor produces PWM between 1100 and 1900, giving fuel level as a
percentage
6 years ago
Michael du Breuil
0a4e3a77b3
AP_BattMonitor: Refactor interface for fetching current related data
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
e177db7dcd
AP_BattMonitor: Remove unused method, make some public functions private
6 years ago
Andrew Tridgell
5571a84a49
AP_BattMonitor: added a "battery" backend for liquid fuel flow
...
This is for sensors that give a pulse for each fixed volume of fuel.
Output is:
- current in Amps maps to in litres/hour
- consumed mAh is in consumed millilitres
- fixed 1.0v voltage
6 years ago
Michael du Breuil
d96aad86a5
AP_BattMonitor: Make type() const
6 years ago
Tom Pittenger
8ef4616bc2
AP_BattMonitor: unify singleton naming to _singleton and get_singleton()
6 years ago
Matt
134e7fb81c
AP_BattMonitor: Add powering off mavlink broadcast
6 years ago
Andrew Tridgell
25247433dc
AP_BattMonitor: added Sum backend type
...
this is used to combine battery monitors into a single reporting
unit. It operates on all instances beyond itself
6 years ago
Michael du Breuil
8b3d993b1e
AP_BattMonitor: Enable 9 battery monitors
6 years ago
Michael du Breuil
0137d6543f
AP_BattMonitor: Allow AP_BattMonitor to run arming checks
6 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
24c1b0890d
AP_BattMonitor: NFC improve coments
7 years ago
Michael du Breuil
4a11093ebb
AP_BattMonitor: Support critical and low battery failsafes
...
Also removes the example script, as it was broken, and causing more
headaches then it was worth
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
6cbeb73d1b
AP_BattMonitor: NFC rename functions and variables to match their functionality
7 years ago
DOMINATOR\Eugene
fcccc0174b
AP_BattMonitor: UAVCAN battery information added
7 years ago
Holger Steinhaus
7383552ebc
AP_BatteryMonitor: count mWh spent since powerup
7 years ago
Michael du Breuil
03bf247d36
AP_BattMonitor: Create a battery singleton
...
Also logs battery data from the read function directly
7 years ago
Michael du Breuil
8712fbd55d
AP_BattMonitor: Move per battery params into a containing class
7 years ago
Michael du Breuil
bb0d43d03c
AP_BattMonitor: Remove unneeded memebers
...
is_powering_off was only used for solo, and was just an intermediate
copy before updating notify
7 years ago
Andrew Tridgell
a4c56fcb82
AP_BattMonitor: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Lucas De Marchi
bd8f0a9e93
AP_BattMonitor: add static create method
7 years ago
Randy Mackay
7a2d8fd5fd
AP_BattMonitor: add has_cell_voltages method
8 years ago
Leonard Hall
d5e898156f
AP_BattMonitor: allow using resting voltage for failsafe
8 years ago
Leonard Hall
8709fe58ec
AP_BattMonitor: resistance learning
8 years ago
Randy Mackay
f64777849f
AP_BattMonitor: rename VOLT_TIMER to LOW_TIMER
8 years ago
Andrew Tridgell
d4e6720b01
AP_BattMonitor: added BATT_VOLT_TIMEO
...
this is useful for aircraft with very low C batteries, to prevent a low
voltage failsafe on takeoff. For long endurance aircraft low C batteries
are often used, and the voltage sags a lot on takeoff, but it fine for
the rest of the flight
8 years ago
Michael du Breuil
3ab3face9b
AP_BattMonitor: SMBus: Read serial number
8 years ago
Michael du Breuil
121ebebfef
AP_BattMonitor: Add temperature interface
8 years ago
Michael du Breuil
e39ae6d48c
AP_BattMonitor: Add cell monitoring
8 years ago
Randy Mackay
ebb60e8d2f
AP_BattMonitor: remove PX4 driver
8 years ago
Tatsuya Yamaguchi
3e445fd4b8
AP_BattMonitor: add Maxell Battery support
8 years ago
Tatsuya Yamaguchi
d30350276c
AP_BattMonitor: I2C driver becomes Solo driver
...
Rename class to Solo
Use internal I2C bus
Add capacity, current, button press checking
Only check continuously for voltage if reading fails for more than 5 seconds
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
floaledm
ec157bd4c2
AP_BattMonitor: Get pack_capacity_mah function
9 years ago
Tom Pittenger
5108b4cbb6
AP_BattMonitor: move vehicle dependant code to be c-file only, not header
9 years ago
Tom Pittenger
d2c9b02ca5
AP_BattMonitor: remove voltage2() since we have voltage(x) available
9 years ago
Tom Pittenger
0e775f595d
AP_BattMonitor: make param BATT_WATT_MAX plane only
9 years ago
Tom Pittenger
035f3b16a1
AP_BattMonitor: add new param BATT_WATT_MAX
...
Description: If battery wattage (voltage * current) exceeds this value then the system will reduce max throttle (THR_MAX and TKOFF_THR_MAX) to satisfy this limit. This helps limit high current to low C rated batteries regardless of battery voltage. The max throttle will slowly grow back to THR_MAX (or TKOFF_THR_MAX) if demanding the current max and under the watt max.
9 years ago