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

Fixing mavlink message ID schema type. #512

Merged
merged 1 commit into from
Mar 16, 2021
Merged
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: 8 additions & 1 deletion generator/mavschema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<!-- definition of attributes -->
<xs:attribute name="name"> <!-- used in enum,entry,message,field elements -->
</xs:attribute>
<xs:attribute name="id" type="xs:unsignedShort"/> <!-- used in message elements -->
<xs:attribute name="id" type="mavlinkMsgId"/> <!-- used in message elements -->
<xs:attribute name="print_format" type="xs:string"/> <!-- used in field elements -->
<xs:attribute name="enum" type="xs:string"/> <!-- used in field,param elements -->
<xs:attribute name="display" type="xs:string"/> <!-- used in field elements -->
Expand Down Expand Up @@ -64,6 +64,13 @@
</xs:attribute>
<xs:attribute name="replaced_by" type="xs:string"/> <!-- used in deprecated elements -->

<!-- mavlink message IDs are unsigned 24-bit values. -->
<xs:simpleType name="mavlinkMsgId" id="mavlinkMsgId">
<xs:restriction base="xs:unsignedInt">
<xs:maxInclusive value="16777215" id="mavlinkMsgId.maxInclusive"/>
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="SI_Unit">
<xs:restriction base="xs:string">
<!-- time -->
Expand Down