Skip to content

Commit

Permalink
mark examples and core modules as python3
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Jan 29, 2025
1 parent feef2c3 commit 3e3c143
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion CSVReader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
CSV log file reader
Expand Down
2 changes: 1 addition & 1 deletion examples/apmsetrate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
set stream rate on an APM
Expand Down
2 changes: 1 addition & 1 deletion examples/bwtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
check bandwidth of link
Expand Down
2 changes: 1 addition & 1 deletion examples/combine_logs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
merge 2 logs into a 3rd log, mapping some messages from LOG2 to new message names
Expand Down
2 changes: 1 addition & 1 deletion examples/magtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
rotate APMs on bench to test magnetometers
Expand Down
2 changes: 1 addition & 1 deletion examples/mav_accel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
show accel calibration for a set of logs
Expand Down
2 changes: 1 addition & 1 deletion examples/mav_replay_estimator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
estimate attitude from an ArduPilot replay log using a python state estimator
Expand Down
2 changes: 1 addition & 1 deletion examples/mavtcpsniff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
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.
Expand Down
2 changes: 1 addition & 1 deletion examples/mavtest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

"""
Generate a message using different MAVLink versions, put in a buffer and then read from it.
Expand Down
2 changes: 1 addition & 1 deletion examples/mavtester.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
test mavlink messages
Expand Down
2 changes: 1 addition & 1 deletion examples/rewrite_log.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
example of rewriting a log with changed values
Expand Down
2 changes: 1 addition & 1 deletion examples/status_msg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
Print flight controller banner statustext messages and AUTOPILOT_VERSION message information.
Expand Down
2 changes: 1 addition & 1 deletion examples/wptogpx.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

'''
example program to extract GPS data from a waypoint file, and create a GPX
Expand Down
2 changes: 1 addition & 1 deletion fgFDM.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

#!/usr/bin/env python
#!/usr/bin/env python3
# parse and construct FlightGear NET FDM packets
# Andrew Tridgell, November 2011
# released under GNU GPL version 2 or later
Expand Down
2 changes: 1 addition & 1 deletion mavexpression.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
mavlink expression evaluation functions
Expand Down
2 changes: 1 addition & 1 deletion mavextra.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
useful extra functions for use by mavlink clients
Expand Down
2 changes: 1 addition & 1 deletion mavftpfs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import errno
import os
Expand Down
2 changes: 1 addition & 1 deletion mavtestgen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
generate a MAVLink test suite
Expand Down
4 changes: 2 additions & 2 deletions mavutil.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
'''
mavlink python utility functions
Expand Down Expand Up @@ -2714,4 +2714,4 @@ def dump_message_verbose(f, m):
if __name__ == '__main__':
serial_list = auto_detect_serial(preferred_list=['*FTDI*',"*Arduino_Mega_2560*", "*3D_Robotics*", "*USB_to_UART*", '*PX4*', '*FMU*'])
for port in serial_list:
print("%s" % port)
print("%s" % port)
2 changes: 1 addition & 1 deletion quaternion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3


"""
Expand Down
2 changes: 1 addition & 1 deletion rotmat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
#
# vector3 and rotation matrix classes
# This follows the conventions in the ArduPilot code,
Expand Down

0 comments on commit 3e3c143

Please sign in to comment.