Skip to content

Commit

Permalink
Average power and motor temperatures (#172)
Browse files Browse the repository at this point in the history
* [messages] Change the ESC message

* [messages] Add average power

---------

Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
  • Loading branch information
dewagter and fvantienen committed Sep 12, 2023
1 parent 1a07e89 commit 9208dc8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions message_definitions/v1.0/messages.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,13 @@
</message>

<message name="ENERGY" id="12">
<field name="throttle" type="uint8" unit="%">Throttle setting</field>
<field name="voltage" type="float" unit="V">Input battery voltage</field>
<field name="current" type="float" unit="A">Current consumption</field>
<field name="power" type="float" unit="W">Electrical power</field>
<field name="charge" type="float" unit="Ah">Accumulated consumed charge</field>
<field name="energy" type="float" unit="Wh">Accumulated consumed energy</field>
<field name="throttle" type="uint8" unit="%">Throttle setting</field>
<field name="voltage" type="float" unit="V">Input battery voltage</field>
<field name="current" type="float" unit="A">Current consumption</field>
<field name="power" type="float" unit="W">Electrical power</field>
<field name="avg_power" type="float" unit="W">Average electrical power</field>
<field name="charge" type="float" unit="Ah">Accumulated consumed charge</field>
<field name="energy" type="float" unit="Wh">Accumulated consumed energy</field>
</message>

<message name="DEBUG_MCU_LINK" id="13">
Expand Down Expand Up @@ -2164,6 +2165,8 @@
<field name="rpm" type="float" unit="rpm">Motor rotation speed</field>
<field name="motor_volts" type="float" unit="V">Motor voltage</field>
<field name="energy" type="float" unit="Wh">Accumulated consumed energy</field>
<field name="temperature" type="float" unit="K">Temperature of the ESC</field>
<field name="node_id" type="uint8">Node ID</field>
<field name="motor_id" type="uint8">Motor ID</field>
</message>

Expand Down

0 comments on commit 9208dc8

Please sign in to comment.