Mavlink_editor
GUI for defining Mavlink messages.
Mavlink messages are defined in an XML file, from which the C structures and helper functions are then generated. To find out more, see the related wiki page in the Skyward Wiki.
This repo contains:
- The GUI editor (
app/
) - The code generator script (
pymavlink/
) - The shared repo where you can find the generated structures and the original XML (
mavlink_skyward_lib/
)
Dependencies: Git and Python2 with pip
Edit the XML
- Clone this repo
git clone --recursive http://www.github.com/skyward-er/Mavlink_editor.git
- Optionally, create a virtual env
virtualenv env
source env/bin/activate
-
cd Mavlink_editor
andpip install -r requirements.txt
-
python run.py
and copy the prompted IP address in your browser
Generate C code
Once you finished editing, you can click on the generate button in the Home page. This will modify the content of mavlink_skyward_lib/mavlin_lib
To commit the changes:
- In the mavlink_skyward_lib/ submodule,
git checkout master
and the commit the changes. - In the main folder,
git submodule update --remote --merge
and commit from there too