Skip to content

Commit 7500aaa

Browse files
committed
added note about python version in instructions for mavlink header generation
1 parent 2c094f2 commit 7500aaa

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

comms/mavlink/generating_v1.0_instructions.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
912
set 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.,
1114
rmdir /s v1.0
15+
1216
set 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
1520
PYTHONPATH=$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:
1823
python3 -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

comms/mavlink/rosflight.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 python3 doesn't work install Python2.7 and run with python2.7 instead.
1011
# in windows:
1112
rmdir /s v1.0
12-
Y
13+
1314
set 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.,
1516
rmdir /s v1.0
16-
Y
17+
1718
set 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:

0 commit comments

Comments
 (0)