mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 22:53:34 +08:00
Power messages update
This commit is contained in:
@@ -4,5 +4,11 @@
|
||||
|
||||
uint8 circuit_id
|
||||
|
||||
uint8 ERROR_MASK_OVERVOLTAGE = 1
|
||||
uint8 ERROR_MASK_UNDERVOLTAGE = 2
|
||||
uint8 ERROR_MASK_OVERCURRENT = 4
|
||||
uint8 ERROR_MASK_UNDERCURRENT = 8
|
||||
uint8 error_mask
|
||||
|
||||
float16 voltage
|
||||
float16 current
|
||||
|
||||
@@ -2,19 +2,22 @@
|
||||
# Nested type.
|
||||
# Energy and capacity are expressed in watt hours (Joules are infeasible because of range limitations).
|
||||
# Unknown values should be represented as NAN.
|
||||
# Typical publishing rate should be around 1 Hz.
|
||||
#
|
||||
|
||||
uint8 battery_id
|
||||
uint8 STATUS_MASK_IN_USE = 1
|
||||
uint8 STATUS_MASK_CHARGING = 2
|
||||
uint8 STATUS_MASK_CHARGED = 4 # Charging complete
|
||||
uint8 STATUS_MASK_TEMP_HOT = 8 # Temperature above normal
|
||||
uint8 STATUS_MASK_TEMP_COLD = 16 # Temperature below normal
|
||||
uint8 STATUS_MASK_OVERLOAD = 32
|
||||
uint8 status_mask
|
||||
|
||||
uint8 MASK_IN_USE = 1
|
||||
uint8 MASK_CHARGING = 2
|
||||
uint8 MASK_CHARGED = 4
|
||||
uint8 mask
|
||||
float16 temperature # Celsius, required
|
||||
float16 voltage # Required
|
||||
float16 current # Required
|
||||
float16 average_power_10sec # Average power consumption over the last 10 seconds, required
|
||||
float16 consumed_wh # Required
|
||||
float16 capacity_wh # NAN if unknown
|
||||
|
||||
float16 voltage
|
||||
float16 power
|
||||
float16 consumed_wh
|
||||
float16 capacity_wh # NAN if unknown
|
||||
|
||||
uint7 CHARGE_PCT_UNKNOWN = 127
|
||||
uint7 charge_pct
|
||||
uint7 remaining_charge_pct # Percent of the full charge [0, 100], required
|
||||
|
||||
Reference in New Issue
Block a user