Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

struct PowerStatusData

fbs/sensors.fbs / Source schema

Battery or power-source state used for monitoring and failsafe decisions.

FlatBuffers root table: PowerStatus

NameTypeUnit / ScaleNotes
timestamp_usulongmicrosecondsSample timestamp in monotonic boot time.
voltagesBatteryCellVoltages16Per-cell voltages for the monitored pack.
current_consumed_mahintmilliamp-hoursIntegrated discharged capacity since the producer’s reset point.
energy_consumed_hjinthecto-joules; joules = value * 100Integrated discharged energy since the producer’s reset point.
time_remaining_sintsecondsEstimated remaining runtime, or a negative value when unknown.
fault_flagsushortbitmaskBitmask of PowerFaultFlags bits.
current_battery_dashortdeci-amps; amps = value / 10Battery current in deci-amps; positive means discharge.
temperature_cdegshortcenti-degrees Celsius; degC = value / 100Battery or power-module temperature in centi-degrees Celsius.
remaining_pctbytepercentRemaining state of charge, or negative when unknown.
idubyteBattery instance identifier; also the instance segment of the Zenoh key.
battery_functionsynapse.types.BatteryFunctionRole of this power source on the vehicle.
battery_typesynapse.types.BatteryTypeBattery chemistry or power-source type.
charge_statesynapse.types.BatteryChargeStateCharging or discharge health state.
connectedboolTrue when the power source is physically present and reporting.