Skip to content

Commit 1a62852

Browse files
committed
mark examples and core modules as python3
1 parent 8591fa7 commit 1a62852

21 files changed

+22
-22
lines changed

CSVReader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
'''
33
CSV log file reader
44

examples/apmsetrate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
set stream rate on an APM

examples/bwtest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
check bandwidth of link

examples/combine_logs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
merge 2 logs into a 3rd log, mapping some messages from LOG2 to new message names

examples/magtest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
rotate APMs on bench to test magnetometers

examples/mav_accel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
show accel calibration for a set of logs

examples/mav_replay_estimator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
estimate attitude from an ArduPilot replay log using a python state estimator

examples/mavtcpsniff.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
connect as a client to two tcpip ports on localhost with mavlink packets. pass them both directions, and show packets in human-readable format on-screen.

examples/mavtest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
"""
44
Generate a message using different MAVLink versions, put in a buffer and then read from it.

examples/mavtester.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
test mavlink messages

examples/rewrite_log.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
'''
33
example of rewriting a log with changed values
44

examples/status_msg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
Print flight controller banner statustext messages and AUTOPILOT_VERSION message information.

examples/wptogpx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
'''
44
example program to extract GPS data from a waypoint file, and create a GPX

fgFDM.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#!/usr/bin/env python
2+
#!/usr/bin/env python3
33
# parse and construct FlightGear NET FDM packets
44
# Andrew Tridgell, November 2011
55
# released under GNU GPL version 2 or later

mavexpression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
'''
33
mavlink expression evaluation functions
44

mavextra.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
'''
33
useful extra functions for use by mavlink clients
44

mavftpfs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import errno
44
import os

mavtestgen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
'''
33
generate a MAVLink test suite
44

mavutil.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
'''
33
mavlink python utility functions
44
@@ -2715,4 +2715,4 @@ def dump_message_verbose(f, m):
27152715
if __name__ == '__main__':
27162716
serial_list = auto_detect_serial(preferred_list=['*FTDI*',"*Arduino_Mega_2560*", "*3D_Robotics*", "*USB_to_UART*", '*PX4*', '*FMU*'])
27172717
for port in serial_list:
2718-
print("%s" % port)
2718+
print("%s" % port)

quaternion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33

44
"""

rotmat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# vector3 and rotation matrix classes
44
# This follows the conventions in the ArduPilot code,

0 commit comments

Comments
 (0)