Skip to content

Commit

Permalink
BATTERY_STATUS_V2.capacity_remaining and smartbattery - fix typos (#2108
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hamishwillee committed Apr 25, 2024
1 parent 77556c7 commit 84aaa04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions message_definitions/v1.0/development.xml
Expand Up @@ -477,7 +477,7 @@
<message id="369" name="BATTERY_STATUS_V2">
<description>Battery dynamic information.
This should be streamed (nominally at 1Hz).
Static/invariant battery information is sent in SMART_BATTERY_INFO.
Static/invariant battery information is sent in BATTERY_INFO.
Note that smart batteries should set the MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL bit to indicate that supplied capacity values are relative to a battery that is known to be full.
Power monitors would not set this bit, indicating that capacity_consumed is relative to drone power-on, and that other values are estimated based on the assumption that the battery was full on power-on.
</description>
Expand All @@ -486,7 +486,7 @@
<field type="float" name="voltage" units="V" invalid="NaN">Battery voltage (total). NaN: field not provided.</field>
<field type="float" name="current" units="A" invalid="NaN">Battery current (through all cells/loads). Positive value when discharging and negative if charging. NaN: field not provided.</field>
<field type="float" name="capacity_consumed" units="Ah" invalid="NaN">Consumed charge. NaN: field not provided. This is either the consumption since power-on or since the battery was full, depending on the value of MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL.</field>
<field type="float" name="capacity_remaining" units="Ah" invalid="NaN">Remaining charge (until empty). UINT32_MAX: field not provided. Note: If MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL is unset, this value is based on the assumption the battery was full when the system was powered.</field>
<field type="float" name="capacity_remaining" units="Ah" invalid="NaN">Remaining charge (until empty). NaN: field not provided. Note: If MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL is unset, this value is based on the assumption the battery was full when the system was powered.</field>
<field type="uint8_t" name="percent_remaining" units="%" invalid="UINT8_MAX">Remaining battery energy. Values: [0-100], UINT8_MAX: field not provided.</field>
<field type="uint32_t" name="status_flags" display="bitmask" enum="MAV_BATTERY_STATUS_FLAGS">Fault, health, readiness, and other status indications.</field>
</message>
Expand Down

0 comments on commit 84aaa04

Please sign in to comment.