File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,20 @@ git clone https://github.com/rosflight/mavlink.git
55# Put the rosflight.xml file there if not already there
66
77# Create the .c/h files from that directory
8+ # If python3 doesn't work install Python2.7 and run with python2.7 instead.
89# in windows:
10+ rmdir /s v1.0
11+
912set PYTHONPATH=%PYTHONPATH%;path\to\mavlink\repo && python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=1.0 --output=./v1.0 rosflight.xml
10- # e.g.,
13+ # e.g.,
1114rmdir /s v1.0
15+
1216set PYTHONPATH=%PYTHONPATH%;C:\Projects\mavlink && python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=1.0 --output=./v1.0 rosflight.xml
1317
1418# in linux:
19+ sudo rm -r ./v1.0
1520PYTHONPATH=$PYTHONPATH:/path/to/mavlink/repo python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=1.0 --output=./v1.0 rosflight.xml
1621
1722# If you are in the mavlink repo environment with rosflight.xml in the standard location:
1823python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=1.0 --output=generated/include/mavlink/v1.0/generated message_definitions/v1.0/rosflight.xml
19- # copy/paste generated into your rosflight_firmware/comms/mavlink folder?>
24+ # copy/paste generated into your rosflight_firmware/comms/mavlink folder
Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ git clone https://github.com/rosflight/mavlink.git
77# Put the rosflight .xml file there if not already there
88
99# Create the .c/h files from that directory
10+ # If python 3 doesn ' t work install Python2.7 and run with python2.7 instead.
1011# in windows:
1112rmdir /s v1.0
12- Y
13+
1314set PYTHONPATH=%PYTHONPATH%;path\to\mavlink\repo && python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=1.0 --output=./v1.0 rosflight.xml
1415# e.g.,
1516rmdir /s v1.0
16- Y
17+
1718set PYTHONPATH=%PYTHONPATH%;C:\Projects\mavlink && python3 -m pymavlink.tools.mavgen --lang=C --wire-protocol=1.0 --output=./v1.0 rosflight.xml
1819
1920# in linux:
You can’t perform that action at this time.
0 commit comments