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

dev: add new message for component capability #1724

Merged
merged 4 commits into from
Nov 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions message_definitions/v1.0/common.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4226,15 +4226,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
30 changes: 30 additions & 0 deletions message_definitions/v1.0/development.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@
Group id is limited because only 24 bit integer can be stored in 32 bit float.</param>
</entry>
</enum>
<enum name="COMPONENT_CAP_FLAGS1" bitmask="true">
<description>Component capability flags 1 (Bitmap)</description>
<entry value="1" name="COMPONENT_CAP_FLAGS1_PARAM">
<description>Component has parameters, and supports the parameter protocol (PARAM messages).</description>
</entry>
<entry value="2" name="COMPONENT_CAP_FLAGS1_PARAM_EXT">
<description>Component has parameters, and supports the extended parameter protocol (PARAM_EXT messages).</description>
</entry>
<entry value="4" name="COMPONENT_CAP_FLAGS1_COMPONENT_INFORMATION">
<description>Component supports the component information protocol.</description>
</entry>
<entry value="8" name="COMPONENT_CAP_FLAGS1_GIMBAL_V2">
<description>Component supports the gimbal v2 protocol.</description>
</entry>
<entry value="16" name="COMPONENT_CAP_FLAGS1_MAVLINK_FTP">
<description>Component supports the MAVLink FTP protocol.</description>
</entry>
<entry value="32" name="COMPONENT_CAP_FLAGS1_EVENTS_INTERFACE">
<description>Component supports the events interface protocol.</description>
</entry>
</enum>
</enums>
<messages>
<!-- Transactions for parameter protocol -->
Expand Down Expand Up @@ -173,6 +194,15 @@
<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_INFORMATION_BASIC">
<description>Basic component information data.</description>
<field type="uint32_t" name="time_boot_ms" units="ms">Timestamp (time since system boot).</field>
<field type="uint8_t[32]" name="vendor_name">Name of the component vendor</field>
<field type="uint8_t[32]" name="model_name">Name of the component model</field>
<field type="char[24]" name="software_version">Sofware version. The version format can be custom, recommended is SEMVER 'major.minor.patch'.</field>
<field type="char[24]" name="hardware_version">Hardware version. The version format can be custom, recommended is SEMVER 'major.minor.patch'.</field>
<field type="uint64_t" name="component_cap_flags1" enum="COMPONENT_CAP_FLAGS1" display="bitmask">Component capability flags 1 (this is called 1, so that number 2 could be added in the future).</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