Skip to content

Commit

Permalink
Add battery faults flags for wrong firmware and battery models (mavli…
Browse files Browse the repository at this point in the history
…nk#1577)

* common.xml: add new battery fault flags

Signed-off-by: Claudio Micheli <[email protected]>

* Change to BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION

Co-authored-by: Hamish Willee <[email protected]>
  • Loading branch information
cmic0 and hamishwillee authored Mar 11, 2021
1 parent 35b3f5e commit cf6d42c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions message_definitions/v1.0/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2932,6 +2932,12 @@
<entry value="64" name="MAV_BATTERY_FAULT_INCOMPATIBLE_VOLTAGE">
<description>Vehicle voltage is not compatible with this battery (batteries on same power rail should have similar voltage).</description>
</entry>
<entry value="128" name="MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE">
<description>Battery firmware is not compatible with current autopilot firmware.</description>
</entry>
<entry value="256" name="BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION">
<description>Battery is not compatible due to cell configuration (e.g. 5s1p when vehicle requires 6s).</description>
</entry>
</enum>
<enum name="MAV_GENERATOR_STATUS_FLAG" bitmask="true">
<description>Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly).</description>
Expand Down

0 comments on commit cf6d42c

Please sign in to comment.