Skip to content

Commit

Permalink
common: add MAV_CMD_SET_STORAGE_USAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Mar 16, 2024
1 parent 9856da5 commit 531b176
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions message_definitions/v1.0/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,15 @@
<param index="4" reserved="true" default="NaN"/>
<param index="7" reserved="true" default="NaN"/>
</entry>
<entry value="533" name="MAV_CMD_SET_STORAGE_USAGE" hasLocation="false" isDestination="false">
<description>Set that a particular storage is the preferred location for saving photos, videos, and/or other media (e.g. to set that an SD card is used for storing videos).
There can only be one preferred save location for each particular media type: setting a media usage flag will clear/reset that same flag if set on any other storage.
If no flag is set the system should use its default storage.
A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED.
A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED.</description>
<param index="1" label="Storage ID" minValue="0" increment="1">Storage ID (1 for first, 2 for second, etc.)</param>
<param index="2" label="Usage" enum="STORAGE_USAGE_FLAG">Usage flags</param>
</entry>
<entry value="600" name="MAV_CMD_JUMP_TAG" hasLocation="false" isDestination="false">
<description>Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG.</description>
<param index="1" label="Tag" minValue="0" increment="1">Tag.</param>
Expand Down

0 comments on commit 531b176

Please sign in to comment.