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
33 changes: 32 additions & 1 deletion message_definitions/v1.0/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4851,6 +4851,30 @@
<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_PAUSED_MODE_CHANGE">
<description>The mission has been paused by changing the flight mode.</description>
</entry>
<entry value="4" name="MISSION_STATUS_PAUSED_AUTO">
<description>The mission has been paused in mission mode. For example, automatically paused due to completion of an item with autocontinue=false.</description>
</entry>
<entry value="5" name="MISSION_STATUS_FINISHED">
<description>The Mission has been finished.</description>
</entry>
<entry value="6" name="MISSION_STATUS_NO_MISSION_UPLOADED">
<description>There is no mission on the vehicle.</description>
</entry>
</enum>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
</enums>
<messages>
<message id="1" name="SYS_STATUS">
Expand Down Expand Up @@ -5187,8 +5211,15 @@
<field type="uint16_t" name="seq">Sequence</field>
</message>
<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>
<description>
Message that announces the sequence number of the current target mission item (that the system will fly towards/execute when the mission is running).
This message should be streamed all the time (nominally at 1Hz).
This message should be emitted following a call to MAV_CMD_DO_SET_MISSION_CURRENT or SET_MISSION_CURRENT.
</description>
<field type="uint16_t" name="seq">Sequence</field>
<extensions/>
<field type="uint16_t" name="total">Total number of mission items. 0 if no mission is present on the vehicle.</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