fix(battery): Add invalid sentinel for BatteryStatus remaining_capacity_wh and nominal_voltage (#27236)

This commit is contained in:
Hamish Willee
2026-04-30 18:19:12 +10:00
committed by GitHub
parent e161eb5ae7
commit 2857ad59dc
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -65,9 +65,9 @@ uint8 FAULT_FAILED_TO_ARM = 10 # Battery had a problem while arming
uint8 FAULT_COUNT = 11 # Counter. Keep this as last element
float32 full_charge_capacity_wh # [Wh] Compensated battery capacity
float32 remaining_capacity_wh # [Wh] Compensated battery capacity remaining
float32 remaining_capacity_wh # [Wh] [@invalid NaN] Compensated battery capacity remaining
uint16 over_discharge_count # [-] Number of battery overdischarge
float32 nominal_voltage # [V] Nominal voltage of the battery pack
float32 nominal_voltage # [V] [@invalid NaN] Nominal voltage of the battery pack
float32 internal_resistance_estimate # [Ohm] Internal resistance per cell estimate
float32 ocv_estimate # [V] Open circuit voltage estimate