|
| 1 | +# |
| 2 | +# Battery data to be sent continuously |
| 3 | +# |
| 4 | + |
| 5 | +float16 temperature_cells # [C] : Pack mounted thermistor (preferably installed between cells), NAN: field not provided |
| 6 | +float16 temperature_pcb # [C] : Battery PCB temperature (likely output FET(s) or current sense resistor), NAN: field not provided |
| 7 | +float16 temperature_other # [C] : Application dependent, NAN: field not provided |
| 8 | +float32 current # [A] : Positive: defined as a discharge current. Negative: defined as a charging current, NAN: field not provided |
| 9 | +float32 voltage # [V] : Battery voltage |
| 10 | +float16 state_of_charge # [%] : The estimated state of charge, in percent remaining (0 - 100). |
| 11 | +uint8 slot_id # : The physical location of the battery on the aircraft. 0: field not provided |
| 12 | +float32 capacity_consumed # [Ah] : This is either the consumption since power-on or since the battery was full, depending on the value of STATUS_FLAG_CAPACITY_RELATIVE_TO_FULL, NAN: field not provided |
| 13 | +uint32 status_flags # : Fault, health, readiness, and other status indications |
| 14 | + |
| 15 | +uint32 STATUS_FLAG_READY_TO_USE = 1 |
| 16 | +uint32 STATUS_FLAG_CHARGING = 2 |
| 17 | +uint32 STATUS_FLAG_CELL_BALANCING = 4 |
| 18 | +uint32 STATUS_FLAG_FAULT_CELL_IMBALANCE = 8 |
| 19 | +uint32 STATUS_FLAG_AUTO_DISCHARGING = 16 |
| 20 | +uint32 STATUS_FLAG_REQUIRES_SERVICE = 32 |
| 21 | +uint32 STATUS_FLAG_BAD_BATTERY = 64 |
| 22 | +uint32 STATUS_FLAG_PROTECTIONS_ENABLED = 128 |
| 23 | +uint32 STATUS_FLAG_FAULT_PROTECTION_SYSTEM = 256 |
| 24 | +uint32 STATUS_FLAG_FAULT_OVER_VOLT = 512 |
| 25 | +uint32 STATUS_FLAG_FAULT_UNDER_VOLT = 1024 |
| 26 | +uint32 STATUS_FLAG_FAULT_OVER_TEMP = 2048 |
| 27 | +uint32 STATUS_FLAG_FAULT_UNDER_TEMP = 4096 |
| 28 | +uint32 STATUS_FLAG_FAULT_OVER_CURRENT = 8192 |
| 29 | +uint32 STATUS_FLAG_FAULT_SHORT_CIRCUIT = 16384 |
| 30 | +uint32 STATUS_FLAG_FAULT_INCOMPATIBLE_VOLTAGE = 32768 |
| 31 | +uint32 STATUS_FLAG_FAULT_INCOMPATIBLE_FIRMWARE = 65536 |
| 32 | +uint32 STATUS_FLAG_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION = 131072 |
| 33 | +uint32 STATUS_FLAG_CAPACITY_RELATIVE_TO_FULL = 262144 |
0 commit comments