struct PowerStatusData
fbs/sensors.fbs / Source schema
Battery or power-source state used for monitoring and failsafe decisions.
FlatBuffers root table: PowerStatus
| Name | Type | Unit / Scale | Notes |
|---|---|---|---|
timestamp_us | ulong | microseconds | Sample timestamp in monotonic boot time. |
voltages | BatteryCellVoltages16 | Per-cell voltages for the monitored pack. | |
current_consumed_mah | int | milliamp-hours | Integrated discharged capacity since the producer’s reset point. |
energy_consumed_hj | int | hecto-joules; joules = value * 100 | Integrated discharged energy since the producer’s reset point. |
time_remaining_s | int | seconds | Estimated remaining runtime, or a negative value when unknown. |
fault_flags | ushort | bitmask | Bitmask of PowerFaultFlags bits. |
current_battery_da | short | deci-amps; amps = value / 10 | Battery current in deci-amps; positive means discharge. |
temperature_cdeg | short | centi-degrees Celsius; degC = value / 100 | Battery or power-module temperature in centi-degrees Celsius. |
remaining_pct | byte | percent | Remaining state of charge, or negative when unknown. |
id | ubyte | Battery instance identifier; also the instance segment of the Zenoh key. | |
battery_function | synapse.types.BatteryFunction | Role of this power source on the vehicle. | |
battery_type | synapse.types.BatteryType | Battery chemistry or power-source type. | |
charge_state | synapse.types.BatteryChargeState | Charging or discharge health state. | |
connected | bool | True when the power source is physically present and reporting. |