Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: extend MISSION_CURRENT #1869

Merged
merged 9 commits into from
Aug 18, 2022
24 changes: 24 additions & 0 deletions message_definitions/v1.0/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4851,6 +4851,27 @@
<description>NAK: NAK response</description>
</entry>
</enum>
<enum name="MISSION_STATUS">
<description>Status of a mission.</description>
<entry value="0" name="MISSION_STATUS_UNKNOWN">
<description>The mission status is not supported.</description>
</entry>
<entry value="1" name="MISSION_STATUS_NOT_STARTED">
<description>The mission has not been started yet. This is the case after upload when there is no active mission.</description>
</entry>
<entry value="2" name="MISSION_STATUS_ACTIVE">
<description>The mission is running and active.</description>
</entry>
<entry value="3" name="MISSION_STATUS_ACTIVE_NOT_IN_MISSION_MODE">
<description>The mission would be running but we're not in mission mode.</description>
</entry>
<entry value="4" name="MISSION_STATUS_PAUSED">
<description>The mission has been paused with autocontinue=false.</description>
julianoes marked this conversation as resolved.
Show resolved Hide resolved
</entry>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
<entry value="5" name="MISSION_STATUS_FINISHED">
<description>The Mission has been finished.</description>
</entry>
</enum>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
</enums>
<messages>
<message id="1" name="SYS_STATUS">
Expand Down Expand Up @@ -5189,6 +5210,9 @@
<message id="42" name="MISSION_CURRENT">
<description>Message that announces the sequence number of the current active mission item. The MAV will fly towards this mission item.</description>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
<field type="uint16_t" name="seq">Sequence</field>
<extensions/>
<field type="uint16_t" name="total">Total number of mission items</field>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
<field type="uint8_t" name="status" enum="MISSION_STATUS">Mission status</field>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
</message>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
<message id="43" name="MISSION_REQUEST_LIST">
<description>Request the overall list of mission items from the system/component.</description>
Expand Down