Skip to content

Commit

Permalink
Add version, name to component capability message
Browse files Browse the repository at this point in the history
This renames the new message from COMPONENT_CAPABILITY to
COMPONENT_INFORMATION_BASICS and adds software/hardware version,
vendor/product name, as well as a reserved capability field.
  • Loading branch information
julianoes committed Nov 23, 2021
1 parent 5418772 commit d9a7d36
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions message_definitions/v1.0/development.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,27 +120,30 @@
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">
<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_FLAGS_PARAM_EXT">
<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_FLAGS_COMPONENT_INFORMATION">
<entry value="4" name="COMPONENT_CAP_FLAGS1_COMPONENT_INFORMATION">
<description>Component supports the component information protocol.</description>
</entry>
<entry value="8" name="COMPONENT_CAP_FLAGS_GIMBAL_V2">
<entry value="8" name="COMPONENT_CAP_FLAGS1_GIMBAL_V2">
<description>Component supports the gimbal v2 protocol.</description>
</entry>
<entry value="16" name="COMPONENT_CAP_FLAGS_MAVLINK_FTP">
<entry value="16" name="COMPONENT_CAP_FLAGS1_MAVLINK_FTP">
<description>Component supports the MAVLink FTP protocol.</description>
</entry>
<entry value="32" name="COMPONENT_CAP_FLAGS_EVENTS_INTERFACE">
<entry value="32" name="COMPONENT_CAP_FLAGS1_EVENTS_INTERFACE">
<description>Component supports the events interface protocol.</description>
</entry>
</enum>
<enum name="COMPONENT_CAP_FLAGS2" bitmask="true">
<description>Component capability flags 2 (Bitmap), reserved for future use.</description>
</enum>
</enums>
<messages>
<!-- Transactions for parameter protocol -->
Expand Down Expand Up @@ -194,10 +197,16 @@
<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>
<message id="396" name="COMPONENT_INFORMATION_BASICS">
<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="uint64_t" name="component_cap_flags1" enum="COMPONENT_CAP_FLAGS1" display="bitmask">Component capability flags 1</field>
<field type="uint64_t" name="component_cap_flags2" enum="COMPONENT_CAP_FLAGS2" display="bitmask">Component capability flags 2 (reserved for future use)</field>
<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>
<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>
</message>
<message id="414" name="GROUP_START">
<description>Emitted during mission execution when control reaches MAV_CMD_GROUP_START.</description>
Expand Down

0 comments on commit d9a7d36

Please sign in to comment.