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

MAVLink: update XML for air-link module support #3162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
652 changes: 482 additions & 170 deletions ExtLibs/Mavlink/Mavlink.cs

Large diffs are not rendered by default.

434 changes: 320 additions & 114 deletions ExtLibs/Mavlink/mavlink.lua

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ExtLibs/Mavlink/message_definitions/ardupilotmega.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<include>icarous.xml</include>
<include>loweheiser.xml</include>
<include>cubepilot.xml</include>
<include>csAirLink.xml</include>
<dialect>2</dialect>
<!-- Note that ArduPilot-specific messages should use the command id range from 150 to 250, to leave plenty of room for growth of common.xml If you prototype a message here, then you should consider if it is general enough to move into common.xml later -->
<enums>
Expand Down
225 changes: 150 additions & 75 deletions ExtLibs/Mavlink/message_definitions/common.xml

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions ExtLibs/Mavlink/message_definitions/csAirLink.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<mavlink>
<!-- ClearSky Air-Link contact info: -->
<!-- company URL: https://air-link.space/ -->
<!-- email contact: [email protected] -->
<!-- mavlink ID range: 52000 - 52099 -->
<version>3</version>
<enums>
<enum name="AIRLINK_AUTH_RESPONSE_TYPE">
<entry value="0" name="AIRLINK_ERROR_LOGIN_OR_PASS">
<description>Login or password error</description>
</entry>
<entry value="1" name="AIRLINK_AUTH_OK">
<description>Auth successful</description>
</entry>
</enum>
</enums>
<messages>
<message id="52000" name="AIRLINK_AUTH">
<description>Authorization package</description>
<field type="char[50]" name="login">Login</field>
<field type="char[50]" name="password">Password</field>
</message>
<message id="52001" name="AIRLINK_AUTH_RESPONSE">
<description>Response to the authorization request</description>
<field type="uint8_t" name="resp_type" enum="AIRLINK_AUTH_RESPONSE_TYPE">Response type</field>
</message>
</messages>
</mavlink>

2 changes: 2 additions & 0 deletions ExtLibs/Mavlink/updatexmls.bat
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ python -c "import urllib.request; print(urllib.request.urlopen('https://github.c

python -c "import urllib.request; print(urllib.request.urlopen('https://github.com/ArduPilot/mavlink/raw/master/message_definitions/v1.0/cubepilot.xml').read().decode('utf-8') )" > message_definitions\cubepilot.xml

python -c "import urllib.request; print(urllib.request.urlopen('https://github.com/ArduPilot/mavlink/raw/master/message_definitions/v1.0/csAirLink.xml').read().decode('utf-8') )" > message_definitions\csAirLink.xml

pause