Skip to content

Commit

Permalink
dev: add new mesage for component capability
Browse files Browse the repository at this point in the history
This moves the existing but unesd COMPONENT_CAP_FLAGS enum from
common.xml to development.xml.
  • Loading branch information
julianoes committed Oct 18, 2021
1 parent d59caba commit 0efc4dd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
9 changes: 0 additions & 9 deletions message_definitions/v1.0/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4059,15 +4059,6 @@
<description>Format is Modern Music Markup Language (MML): https://en.wikipedia.org/wiki/Music_Macro_Language#Modern_MML.</description>
</entry>
</enum>
<enum name="COMPONENT_CAP_FLAGS" bitmask="true">
<description>Component capability flags (Bitmap)</description>
<entry value="1" name="COMPONENT_CAP_FLAGS_PARAM">
<description>Component has parameters, and supports the parameter protocol (PARAM messages).</description>
</entry>
<entry value="2" name="COMPONENT_CAP_FLAGS_PARAM_EXT">
<description>Component has parameters, and supports the extended parameter protocol (PARAM_EXT messages).</description>
</entry>
</enum>
<!-- AIS related enums-->
<enum name="AIS_TYPE">
<description>Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html</description>
Expand Down
26 changes: 26 additions & 0 deletions message_definitions/v1.0/development.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,27 @@
Group id is limited because only 24 bit integer can be stored in 32 bit float.</param>
</entry>
</enum>
<enum name="COMPONENT_CAP_FLAGS" bitmask="true">
<description>Component capability flags (Bitmap)</description>
<entry value="1" name="COMPONENT_CAP_FLAGS_PARAM">
<description>Component has parameters, and supports the parameter protocol (PARAM messages).</description>
</entry>
<entry value="2" name="COMPONENT_CAP_FLAGS_PARAM_EXT">
<description>Component has parameters, and supports the extended parameter protocol (PARAM_EXT messages).</description>
</entry>
<entry value="4" name="COMPONENT_CAP_FLAGS_COMPONENT_INFORMATION">
<description>Component supports the component information protocol.</description>
</entry>
<entry value="8" name="COMPONENT_CAP_FLAGS_GIMBAL_V2">
<description>Component supports the gimbal v2 protocol.</description>
</entry>
<entry value="16" name="COMPONENT_CAP_FLAGS_MAVLINK_FTP">
<description>Component supports the MAVLink FTP protocol.</description>
</entry>
<entry value="32" name="COMPONENT_CAP_FLAGS_EVENTS_INTERFACE">
<description>Component supports the events interface protocol.</description>
</entry>
</enum>
</enums>
<messages>
<!-- Transactions for parameter protocol -->
Expand Down Expand Up @@ -183,6 +204,11 @@
<field type="uint16_t" name="data_rate" units="MiB/s">WiFi network data rate. Set to UINT16_MAX if data_rate information is not supplied.</field>
<field type="uint8_t" name="security" enum="WIFI_NETWORK_SECURITY">WiFi network security type.</field>
</message>
<message id="396" name="COMPONENT_CAPABILITY">
<description>Information about what MAVLink meta-protocols/micro-services a component supports.</description>
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
<field type="uint64_t" name="component_cap_flags" enum="COMPONENT_CAP_FLAGS" display="bitmask">Component capability flags</field>
</message>
<message id="414" name="GROUP_START">
<description>Emitted during mission execution when control reaches MAV_CMD_GROUP_START.</description>
<field type="uint32_t" name="group_id">Mission-unique group id (from MAV_CMD_GROUP_START).</field>
Expand Down

0 comments on commit 0efc4dd

Please sign in to comment.