diff --git a/MAVProxy/modules/lib/ANUGA/lat_long_UTM_conversion.py b/MAVProxy/modules/lib/ANUGA/lat_long_UTM_conversion.py index 9d13f33b48..f751a3431f 100644 --- a/MAVProxy/modules/lib/ANUGA/lat_long_UTM_conversion.py +++ b/MAVProxy/modules/lib/ANUGA/lat_long_UTM_conversion.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Lat Long - UTM, UTM - Lat Long conversions # diff --git a/MAVProxy/modules/lib/LowPassFilter2p.py b/MAVProxy/modules/lib/LowPassFilter2p.py index f7df22307e..d2c656270b 100644 --- a/MAVProxy/modules/lib/LowPassFilter2p.py +++ b/MAVProxy/modules/lib/LowPassFilter2p.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from math import * diff --git a/MAVProxy/modules/lib/camera_projection.py b/MAVProxy/modules/lib/camera_projection.py index 35f5c3f1d1..48f2c04eb1 100755 --- a/MAVProxy/modules/lib/camera_projection.py +++ b/MAVProxy/modules/lib/camera_projection.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' class to project a camera view onto the map ''' diff --git a/MAVProxy/modules/lib/grapher.py b/MAVProxy/modules/lib/grapher.py index 9d9a8de687..ada5f7d5b9 100755 --- a/MAVProxy/modules/lib/grapher.py +++ b/MAVProxy/modules/lib/grapher.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' core library for graphing in mavexplorer diff --git a/MAVProxy/modules/lib/kmlread.py b/MAVProxy/modules/lib/kmlread.py index 335a9e6d1c..b79562ad30 100644 --- a/MAVProxy/modules/lib/kmlread.py +++ b/MAVProxy/modules/lib/kmlread.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import lxml.etree as etree from io import BytesIO as SIO diff --git a/MAVProxy/modules/lib/live_graph.py b/MAVProxy/modules/lib/live_graph.py index dcf9644167..d11a4107d5 100755 --- a/MAVProxy/modules/lib/live_graph.py +++ b/MAVProxy/modules/lib/live_graph.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ diff --git a/MAVProxy/modules/lib/magfit.py b/MAVProxy/modules/lib/magfit.py index df6a0ed6f7..ccecf8af7d 100644 --- a/MAVProxy/modules/lib/magfit.py +++ b/MAVProxy/modules/lib/magfit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' fit best estimate of magnetometer offsets, diagonals, off-diagonals, cmot and scaling using WMM target diff --git a/MAVProxy/modules/lib/mav_fft.py b/MAVProxy/modules/lib/mav_fft.py index b9013832fc..9a686fe59f 100644 --- a/MAVProxy/modules/lib/mav_fft.py +++ b/MAVProxy/modules/lib/mav_fft.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' extract ISBH and ISBD messages from AP_Logging files and produce FFT plots diff --git a/MAVProxy/modules/lib/mission_item_protocol.py b/MAVProxy/modules/lib/mission_item_protocol.py index 0067cb6418..f30edc4d09 100644 --- a/MAVProxy/modules/lib/mission_item_protocol.py +++ b/MAVProxy/modules/lib/mission_item_protocol.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' base class for modules generally transfering items using the MISSION_ITEM protocol diff --git a/MAVProxy/modules/lib/mp_checklist.py b/MAVProxy/modules/lib/mp_checklist.py index 6d20a76a52..20eea4e43c 100755 --- a/MAVProxy/modules/lib/mp_checklist.py +++ b/MAVProxy/modules/lib/mp_checklist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy checklist, implemented in a child process diff --git a/MAVProxy/modules/lib/mp_elevation.py b/MAVProxy/modules/lib/mp_elevation.py index 4e781b7001..47af99b041 100755 --- a/MAVProxy/modules/lib/mp_elevation.py +++ b/MAVProxy/modules/lib/mp_elevation.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 ''' Wrapper for the SRTM module (srtm.py) It will grab the altitude of a long,lat pair from the SRTM database diff --git a/MAVProxy/modules/lib/mp_image.py b/MAVProxy/modules/lib/mp_image.py index 3511177243..7ea6f03ed2 100755 --- a/MAVProxy/modules/lib/mp_image.py +++ b/MAVProxy/modules/lib/mp_image.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/MAVProxy/modules/lib/mp_instructor.py b/MAVProxy/modules/lib/mp_instructor.py index 6bfd0c4ce4..02c4cb70af 100755 --- a/MAVProxy/modules/lib/mp_instructor.py +++ b/MAVProxy/modules/lib/mp_instructor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy instructor station, UI runs in a child process diff --git a/MAVProxy/modules/lib/mp_menu.py b/MAVProxy/modules/lib/mp_menu.py index 862824b645..217b6f66d7 100644 --- a/MAVProxy/modules/lib/mp_menu.py +++ b/MAVProxy/modules/lib/mp_menu.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' menu handling widgets for wx diff --git a/MAVProxy/modules/lib/mp_settings.py b/MAVProxy/modules/lib/mp_settings.py index 982217c380..6a6cab25d6 100644 --- a/MAVProxy/modules/lib/mp_settings.py +++ b/MAVProxy/modules/lib/mp_settings.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''settings object for MAVProxy modules''' import time diff --git a/MAVProxy/modules/lib/mp_util.py b/MAVProxy/modules/lib/mp_util.py index 7d0e4d42e5..9eb1d1b0ce 100644 --- a/MAVProxy/modules/lib/mp_util.py +++ b/MAVProxy/modules/lib/mp_util.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- '''common mavproxy utility functions''' diff --git a/MAVProxy/modules/lib/mp_widgets.py b/MAVProxy/modules/lib/mp_widgets.py index f2c929e438..9115a572ef 100644 --- a/MAVProxy/modules/lib/mp_widgets.py +++ b/MAVProxy/modules/lib/mp_widgets.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' some useful wx widgets diff --git a/MAVProxy/modules/lib/msgstats.py b/MAVProxy/modules/lib/msgstats.py index 31b9bf39c4..cab9cc37c5 100644 --- a/MAVProxy/modules/lib/msgstats.py +++ b/MAVProxy/modules/lib/msgstats.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' show stats on messages in a log in MAVExplorer diff --git a/MAVProxy/modules/lib/ntrip.py b/MAVProxy/modules/lib/ntrip.py index 6f53fd60f4..66586c8cc8 100755 --- a/MAVProxy/modules/lib/ntrip.py +++ b/MAVProxy/modules/lib/ntrip.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ NTRIP client module based on client from http://github.com/jcmb/NTRIP diff --git a/MAVProxy/modules/lib/rtcm3.py b/MAVProxy/modules/lib/rtcm3.py index bac263fd6e..5bde1a57b2 100644 --- a/MAVProxy/modules/lib/rtcm3.py +++ b/MAVProxy/modules/lib/rtcm3.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''Decode RTCM v3 messages''' RTCMv3_PREAMBLE = 0xD3 diff --git a/MAVProxy/modules/lib/srtm.py b/MAVProxy/modules/lib/srtm.py index 6ae9db353d..387a073309 100755 --- a/MAVProxy/modules/lib/srtm.py +++ b/MAVProxy/modules/lib/srtm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Pylint: Disable name warnings # pylint: disable-msg=C0103 diff --git a/MAVProxy/modules/lib/textconsole.py b/MAVProxy/modules/lib/textconsole.py index 7cf2480e7c..31bc4fa2ea 100644 --- a/MAVProxy/modules/lib/textconsole.py +++ b/MAVProxy/modules/lib/textconsole.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy default console diff --git a/MAVProxy/modules/lib/win_layout.py b/MAVProxy/modules/lib/win_layout.py index 7b021f1f33..eeb59d98b7 100644 --- a/MAVProxy/modules/lib/win_layout.py +++ b/MAVProxy/modules/lib/win_layout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import os, wx, pickle diff --git a/MAVProxy/modules/lib/wxconsole.py b/MAVProxy/modules/lib/wxconsole.py index 7a221def40..e172eaad51 100755 --- a/MAVProxy/modules/lib/wxconsole.py +++ b/MAVProxy/modules/lib/wxconsole.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy message console, implemented in a child process diff --git a/MAVProxy/modules/lib/wxhorizon.py b/MAVProxy/modules/lib/wxhorizon.py index 97d4c78b3c..0271144634 100755 --- a/MAVProxy/modules/lib/wxhorizon.py +++ b/MAVProxy/modules/lib/wxhorizon.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy horizon indicator. diff --git a/MAVProxy/modules/lib/wxrc.py b/MAVProxy/modules/lib/wxrc.py index 91d7d1e576..6815f20258 100644 --- a/MAVProxy/modules/lib/wxrc.py +++ b/MAVProxy/modules/lib/wxrc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy RC GUI diff --git a/MAVProxy/modules/lib/wxsaildash.py b/MAVProxy/modules/lib/wxsaildash.py index 847df637ef..22e3025f38 100644 --- a/MAVProxy/modules/lib/wxsaildash.py +++ b/MAVProxy/modules/lib/wxsaildash.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy sailing dashboard diff --git a/MAVProxy/modules/mavproxy_DGPS.py b/MAVProxy/modules/mavproxy_DGPS.py index 217bbb6ece..1b0be88704 100644 --- a/MAVProxy/modules/mavproxy_DGPS.py +++ b/MAVProxy/modules/mavproxy_DGPS.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' support for a GCS attached DGPS system ''' diff --git a/MAVProxy/modules/mavproxy_GPSInput.py b/MAVProxy/modules/mavproxy_GPSInput.py index 7716ff8134..e285f3810e 100644 --- a/MAVProxy/modules/mavproxy_GPSInput.py +++ b/MAVProxy/modules/mavproxy_GPSInput.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' support for GPS_INPUT message ''' diff --git a/MAVProxy/modules/mavproxy_HIL.py b/MAVProxy/modules/mavproxy_HIL.py index 7dd9cbdf75..b4dd73dc17 100644 --- a/MAVProxy/modules/mavproxy_HIL.py +++ b/MAVProxy/modules/mavproxy_HIL.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' HIL module Andrew Tridgell diff --git a/MAVProxy/modules/mavproxy_antenna.py b/MAVProxy/modules/mavproxy_antenna.py index a197526321..8635e9d9a5 100644 --- a/MAVProxy/modules/mavproxy_antenna.py +++ b/MAVProxy/modules/mavproxy_antenna.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' antenna pointing module Andrew Tridgell diff --git a/MAVProxy/modules/mavproxy_arm.py b/MAVProxy/modules/mavproxy_arm.py index 6898bd2492..dac121729d 100644 --- a/MAVProxy/modules/mavproxy_arm.py +++ b/MAVProxy/modules/mavproxy_arm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''arm/disarm command handling''' import time, os diff --git a/MAVProxy/modules/mavproxy_auxopt.py b/MAVProxy/modules/mavproxy_auxopt.py index b08a688127..63b238335e 100644 --- a/MAVProxy/modules/mavproxy_auxopt.py +++ b/MAVProxy/modules/mavproxy_auxopt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''auxopt command handling''' import time, os diff --git a/MAVProxy/modules/mavproxy_battery.py b/MAVProxy/modules/mavproxy_battery.py index 66ef575781..06625dd4cf 100644 --- a/MAVProxy/modules/mavproxy_battery.py +++ b/MAVProxy/modules/mavproxy_battery.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''battery commands''' import time, math diff --git a/MAVProxy/modules/mavproxy_calibration.py b/MAVProxy/modules/mavproxy_calibration.py index 842a71acde..e93bc32630 100644 --- a/MAVProxy/modules/mavproxy_calibration.py +++ b/MAVProxy/modules/mavproxy_calibration.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''calibration command handling''' import time, os diff --git a/MAVProxy/modules/mavproxy_cameraview.py b/MAVProxy/modules/mavproxy_cameraview.py index 39f58811f9..300969ca80 100644 --- a/MAVProxy/modules/mavproxy_cameraview.py +++ b/MAVProxy/modules/mavproxy_cameraview.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' camera view module Malcolm Gill diff --git a/MAVProxy/modules/mavproxy_checklist.py b/MAVProxy/modules/mavproxy_checklist.py index 6fd8d0016e..9c16422975 100755 --- a/MAVProxy/modules/mavproxy_checklist.py +++ b/MAVProxy/modules/mavproxy_checklist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Checklist module Stephen Dade diff --git a/MAVProxy/modules/mavproxy_cmdlong.py b/MAVProxy/modules/mavproxy_cmdlong.py index 08986c4b2f..0ff00fbe52 100644 --- a/MAVProxy/modules/mavproxy_cmdlong.py +++ b/MAVProxy/modules/mavproxy_cmdlong.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''command long''' import time, os diff --git a/MAVProxy/modules/mavproxy_dataflash_logger.py b/MAVProxy/modules/mavproxy_dataflash_logger.py index 3986e94c95..833d6db93b 100644 --- a/MAVProxy/modules/mavproxy_dataflash_logger.py +++ b/MAVProxy/modules/mavproxy_dataflash_logger.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/MAVProxy/modules/mavproxy_devop.py b/MAVProxy/modules/mavproxy_devop.py index e6f2e53f0d..5ad10e4edb 100644 --- a/MAVProxy/modules/mavproxy_devop.py +++ b/MAVProxy/modules/mavproxy_devop.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''remote low level device operations''' import time, os, sys diff --git a/MAVProxy/modules/mavproxy_example.py b/MAVProxy/modules/mavproxy_example.py index 595d1f9639..953bb672f9 100644 --- a/MAVProxy/modules/mavproxy_example.py +++ b/MAVProxy/modules/mavproxy_example.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Example Module Peter Barker, September 2016 diff --git a/MAVProxy/modules/mavproxy_fakegps.py b/MAVProxy/modules/mavproxy_fakegps.py index c5be3551d0..c59ae5b07a 100644 --- a/MAVProxy/modules/mavproxy_fakegps.py +++ b/MAVProxy/modules/mavproxy_fakegps.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''fake GPS input using GPS_INPUT packet''' import time diff --git a/MAVProxy/modules/mavproxy_fieldcheck/__init__.py b/MAVProxy/modules/mavproxy_fieldcheck/__init__.py index fa8ec1a5bc..b9f925b2e8 100755 --- a/MAVProxy/modules/mavproxy_fieldcheck/__init__.py +++ b/MAVProxy/modules/mavproxy_fieldcheck/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' CMAC mission control Peter Barker diff --git a/MAVProxy/modules/mavproxy_firmware.py b/MAVProxy/modules/mavproxy_firmware.py index e85f986371..de48dc95dd 100644 --- a/MAVProxy/modules/mavproxy_firmware.py +++ b/MAVProxy/modules/mavproxy_firmware.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/MAVProxy/modules/mavproxy_followtest.py b/MAVProxy/modules/mavproxy_followtest.py index 10b62dce8e..8f97532b0b 100644 --- a/MAVProxy/modules/mavproxy_followtest.py +++ b/MAVProxy/modules/mavproxy_followtest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' test follow-me options in ArduPilot Andrew Tridgell diff --git a/MAVProxy/modules/mavproxy_ftp.py b/MAVProxy/modules/mavproxy_ftp.py index 9c5d2a43d0..6c8156ad07 100644 --- a/MAVProxy/modules/mavproxy_ftp.py +++ b/MAVProxy/modules/mavproxy_ftp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''mavlink file transfer support''' import io diff --git a/MAVProxy/modules/mavproxy_generator.py b/MAVProxy/modules/mavproxy_generator.py index 50c81eb886..cd0881c7f0 100644 --- a/MAVProxy/modules/mavproxy_generator.py +++ b/MAVProxy/modules/mavproxy_generator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Generator Module - module for generators reporting via the GENERATOR_STATUS message Peter Barker, Jun 2020 diff --git a/MAVProxy/modules/mavproxy_gimbal.py b/MAVProxy/modules/mavproxy_gimbal.py index f2857caf89..66a066a24a 100644 --- a/MAVProxy/modules/mavproxy_gimbal.py +++ b/MAVProxy/modules/mavproxy_gimbal.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' gimbal control module Andrew Tridgell diff --git a/MAVProxy/modules/mavproxy_gopro.py b/MAVProxy/modules/mavproxy_gopro.py index 5358f57ad0..5deb859e00 100644 --- a/MAVProxy/modules/mavproxy_gopro.py +++ b/MAVProxy/modules/mavproxy_gopro.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''gopro control over mavlink for the solo-gimbal To use this module connect to a Solo with a GoPro installed on the gimbal. diff --git a/MAVProxy/modules/mavproxy_instructor.py b/MAVProxy/modules/mavproxy_instructor.py index 50683c2bdf..1e71c5e102 100755 --- a/MAVProxy/modules/mavproxy_instructor.py +++ b/MAVProxy/modules/mavproxy_instructor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ MAVProxy instructor station module André Kjellstrup @ NORCE diff --git a/MAVProxy/modules/mavproxy_joystick/findjoy.py b/MAVProxy/modules/mavproxy_joystick/findjoy.py index 2722163864..dbfd10f0a2 100644 --- a/MAVProxy/modules/mavproxy_joystick/findjoy.py +++ b/MAVProxy/modules/mavproxy_joystick/findjoy.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''This is a script that will help you identify controls on your joystick in order to create an appropriate joystick definition for the joystick diff --git a/MAVProxy/modules/mavproxy_kmlread.py b/MAVProxy/modules/mavproxy_kmlread.py index 818cb986d9..0d17c1c099 100644 --- a/MAVProxy/modules/mavproxy_kmlread.py +++ b/MAVProxy/modules/mavproxy_kmlread.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''Module to add or clear kml layers on the map Copyright Stephen Dade 2016 diff --git a/MAVProxy/modules/mavproxy_layout.py b/MAVProxy/modules/mavproxy_layout.py index b77091fd69..e52045fc44 100644 --- a/MAVProxy/modules/mavproxy_layout.py +++ b/MAVProxy/modules/mavproxy_layout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''window layout command handling''' from MAVProxy.modules.lib import mp_module diff --git a/MAVProxy/modules/mavproxy_link.py b/MAVProxy/modules/mavproxy_link.py index 946e7d1003..ecb4fc34ef 100644 --- a/MAVProxy/modules/mavproxy_link.py +++ b/MAVProxy/modules/mavproxy_link.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''enable run-time addition and removal of master link, just like --master on the cnd line diff --git a/MAVProxy/modules/mavproxy_log.py b/MAVProxy/modules/mavproxy_log.py index 9532b08a22..992878c790 100644 --- a/MAVProxy/modules/mavproxy_log.py +++ b/MAVProxy/modules/mavproxy_log.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''log command handling''' import time, os diff --git a/MAVProxy/modules/mavproxy_map/GAreader.py b/MAVProxy/modules/mavproxy_map/GAreader.py index 19c1d8c17f..65d87e01c3 100755 --- a/MAVProxy/modules/mavproxy_map/GAreader.py +++ b/MAVProxy/modules/mavproxy_map/GAreader.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Module to read DTM files published by Geoscience Australia Written by Stephen Dade (stephen_dade@hotmail.com diff --git a/MAVProxy/modules/mavproxy_map/__init__.py b/MAVProxy/modules/mavproxy_map/__init__.py index 5340567d7c..680b03b7e8 100644 --- a/MAVProxy/modules/mavproxy_map/__init__.py +++ b/MAVProxy/modules/mavproxy_map/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' map display module Andrew Tridgell diff --git a/MAVProxy/modules/mavproxy_map/mp_elevation.py b/MAVProxy/modules/mavproxy_map/mp_elevation.py index 360ac26811..3274c6ff2d 100644 --- a/MAVProxy/modules/mavproxy_map/mp_elevation.py +++ b/MAVProxy/modules/mavproxy_map/mp_elevation.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 '''backwards-compatability module - ElevationModel was moved into lib but we don't want to break existing users diff --git a/MAVProxy/modules/mavproxy_map/mp_slipmap.py b/MAVProxy/modules/mavproxy_map/mp_slipmap.py index e173c24ecb..d928d99333 100755 --- a/MAVProxy/modules/mavproxy_map/mp_slipmap.py +++ b/MAVProxy/modules/mavproxy_map/mp_slipmap.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' slipmap based on mp_tile diff --git a/MAVProxy/modules/mavproxy_map/mp_slipmap_util.py b/MAVProxy/modules/mavproxy_map/mp_slipmap_util.py index aff9d6853e..53c92bd367 100644 --- a/MAVProxy/modules/mavproxy_map/mp_slipmap_util.py +++ b/MAVProxy/modules/mavproxy_map/mp_slipmap_util.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' slipmap based on mp_tile diff --git a/MAVProxy/modules/mavproxy_map/mp_tile.py b/MAVProxy/modules/mavproxy_map/mp_tile.py index c13fd2da21..ae68ab6ef9 100755 --- a/MAVProxy/modules/mavproxy_map/mp_tile.py +++ b/MAVProxy/modules/mavproxy_map/mp_tile.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' access satellite map tile database diff --git a/MAVProxy/modules/mavproxy_map/srtm.py b/MAVProxy/modules/mavproxy_map/srtm.py index e28fa1aed1..efa6d7cddb 100644 --- a/MAVProxy/modules/mavproxy_map/srtm.py +++ b/MAVProxy/modules/mavproxy_map/srtm.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 '''backwards-compatability module - srtm was moved into lib but we don't want to break existing users diff --git a/MAVProxy/modules/mavproxy_message.py b/MAVProxy/modules/mavproxy_message.py index 3d39165cc6..c2ceac86be 100644 --- a/MAVProxy/modules/mavproxy_message.py +++ b/MAVProxy/modules/mavproxy_message.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Arbitrary Message Module Peter Barker, September 2017 diff --git a/MAVProxy/modules/mavproxy_messagerate.py b/MAVProxy/modules/mavproxy_messagerate.py index 73bd1c1343..ca467d140b 100644 --- a/MAVProxy/modules/mavproxy_messagerate.py +++ b/MAVProxy/modules/mavproxy_messagerate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Message Rate viewer Peter Barker, December 2018 diff --git a/MAVProxy/modules/mavproxy_misc.py b/MAVProxy/modules/mavproxy_misc.py index 72dd31e22e..e153a1729e 100644 --- a/MAVProxy/modules/mavproxy_misc.py +++ b/MAVProxy/modules/mavproxy_misc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' miscellaneous commands diff --git a/MAVProxy/modules/mavproxy_misseditor/__init__.py b/MAVProxy/modules/mavproxy_misseditor/__init__.py index 27831596f1..4ef85de713 100644 --- a/MAVProxy/modules/mavproxy_misseditor/__init__.py +++ b/MAVProxy/modules/mavproxy_misseditor/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' mission editor module Michael Day diff --git a/MAVProxy/modules/mavproxy_misseditor/button_renderer.py b/MAVProxy/modules/mavproxy_misseditor/button_renderer.py index 6817acdd5c..09250cfc34 100644 --- a/MAVProxy/modules/mavproxy_misseditor/button_renderer.py +++ b/MAVProxy/modules/mavproxy_misseditor/button_renderer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Custom button render class for use inside a wx.grid (ported from http://forums.wxwidgets.org/viewtopic.php?t=14403 ) diff --git a/MAVProxy/modules/mavproxy_misseditor/me_event.py b/MAVProxy/modules/mavproxy_misseditor/me_event.py index 67e0fc96d9..bd660443b6 100644 --- a/MAVProxy/modules/mavproxy_misseditor/me_event.py +++ b/MAVProxy/modules/mavproxy_misseditor/me_event.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Event class and enums for Mission Editor Michael Day diff --git a/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py b/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py index 8ef816bc91..13071b0fce 100755 --- a/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py +++ b/MAVProxy/modules/mavproxy_misseditor/missionEditorFrame.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # generated by wxGlade 0.6.8 on Wed Jun 11 13:41:49 2014 diff --git a/MAVProxy/modules/mavproxy_misseditor/mission_editor.py b/MAVProxy/modules/mavproxy_misseditor/mission_editor.py index 0f5e70ae1f..4bdb8e748c 100644 --- a/MAVProxy/modules/mavproxy_misseditor/mission_editor.py +++ b/MAVProxy/modules/mavproxy_misseditor/mission_editor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' mission editor module Michael Day diff --git a/MAVProxy/modules/mavproxy_mode.py b/MAVProxy/modules/mavproxy_mode.py index 84bb70edeb..9a8ea388aa 100644 --- a/MAVProxy/modules/mavproxy_mode.py +++ b/MAVProxy/modules/mavproxy_mode.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''mode command handling''' from pymavlink import mavutil diff --git a/MAVProxy/modules/mavproxy_movinghome.py b/MAVProxy/modules/mavproxy_movinghome.py index 28201cc45b..aedb6c6aaa 100644 --- a/MAVProxy/modules/mavproxy_movinghome.py +++ b/MAVProxy/modules/mavproxy_movinghome.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' movinghome module André Kjellstrup, Norce diff --git a/MAVProxy/modules/mavproxy_msg.py b/MAVProxy/modules/mavproxy_msg.py index dc1d8712e8..e9f301ae18 100644 --- a/MAVProxy/modules/mavproxy_msg.py +++ b/MAVProxy/modules/mavproxy_msg.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Msg Module Peter barker, September 2016 diff --git a/MAVProxy/modules/mavproxy_nmeagps.py b/MAVProxy/modules/mavproxy_nmeagps.py index 337542ff04..c8022c0057 100644 --- a/MAVProxy/modules/mavproxy_nmeagps.py +++ b/MAVProxy/modules/mavproxy_nmeagps.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' nmea GPS connector connect to a NMEA GPS on a serial port and provide this as location position diff --git a/MAVProxy/modules/mavproxy_nmeaout.py b/MAVProxy/modules/mavproxy_nmeaout.py index 3201a627d1..3437a999d5 100644 --- a/MAVProxy/modules/mavproxy_nmeaout.py +++ b/MAVProxy/modules/mavproxy_nmeaout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' nmea serial output module Matthew Ridley diff --git a/MAVProxy/modules/mavproxy_nsh.py b/MAVProxy/modules/mavproxy_nsh.py index 0bfa4158a6..d9e25179b1 100644 --- a/MAVProxy/modules/mavproxy_nsh.py +++ b/MAVProxy/modules/mavproxy_nsh.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''remote nsh console handling''' import time, os, fnmatch, sys, time diff --git a/MAVProxy/modules/mavproxy_oldwp.py b/MAVProxy/modules/mavproxy_oldwp.py index 099d5c46ac..4c3e9d5fbd 100644 --- a/MAVProxy/modules/mavproxy_oldwp.py +++ b/MAVProxy/modules/mavproxy_oldwp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''waypoint command handling''' import copy diff --git a/MAVProxy/modules/mavproxy_osd.py b/MAVProxy/modules/mavproxy_osd.py index 399e0bcc48..76cb1eba76 100644 --- a/MAVProxy/modules/mavproxy_osd.py +++ b/MAVProxy/modules/mavproxy_osd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' OSD Module Andy Piper, August 2020, Vendee, France diff --git a/MAVProxy/modules/mavproxy_output.py b/MAVProxy/modules/mavproxy_output.py index e331e5264f..800508d64c 100644 --- a/MAVProxy/modules/mavproxy_output.py +++ b/MAVProxy/modules/mavproxy_output.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''enable run-time addition and removal of UDP clients , just like --out on the cnd line''' ''' TO USE: output add 10.11.12.13:14550 diff --git a/MAVProxy/modules/mavproxy_param.py b/MAVProxy/modules/mavproxy_param.py index 3f828b4577..9fb7314f2e 100644 --- a/MAVProxy/modules/mavproxy_param.py +++ b/MAVProxy/modules/mavproxy_param.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' param command handling diff --git a/MAVProxy/modules/mavproxy_paramedit/__init__.py b/MAVProxy/modules/mavproxy_paramedit/__init__.py index 87385567c0..1e1d81bc21 100644 --- a/MAVProxy/modules/mavproxy_paramedit/__init__.py +++ b/MAVProxy/modules/mavproxy_paramedit/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' param editor module Akshath Singhal diff --git a/MAVProxy/modules/mavproxy_paramedit/checklisteditor.py b/MAVProxy/modules/mavproxy_paramedit/checklisteditor.py index 87e958e7e6..16fc9afea6 100644 --- a/MAVProxy/modules/mavproxy_paramedit/checklisteditor.py +++ b/MAVProxy/modules/mavproxy_paramedit/checklisteditor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import wx import wx.grid as gridlib import math diff --git a/MAVProxy/modules/mavproxy_paramedit/param_editor.py b/MAVProxy/modules/mavproxy_paramedit/param_editor.py index 550a6a8023..d0f096ed28 100644 --- a/MAVProxy/modules/mavproxy_paramedit/param_editor.py +++ b/MAVProxy/modules/mavproxy_paramedit/param_editor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' param editor module Akshath Singhal diff --git a/MAVProxy/modules/mavproxy_paramedit/param_editor_frame.py b/MAVProxy/modules/mavproxy_paramedit/param_editor_frame.py index 6568d1fa7d..4a479fa776 100755 --- a/MAVProxy/modules/mavproxy_paramedit/param_editor_frame.py +++ b/MAVProxy/modules/mavproxy_paramedit/param_editor_frame.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # # generated by wxGlade 0.7.1 on Wed May 8 16:56:24 2019 diff --git a/MAVProxy/modules/mavproxy_paramedit/ph_event.py b/MAVProxy/modules/mavproxy_paramedit/ph_event.py index 572d106d11..8bf2f75742 100644 --- a/MAVProxy/modules/mavproxy_paramedit/ph_event.py +++ b/MAVProxy/modules/mavproxy_paramedit/ph_event.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Event class and enums for Parameter Editor diff --git a/MAVProxy/modules/mavproxy_park.py b/MAVProxy/modules/mavproxy_park.py index 5e944918c3..0c621fe74b 100644 --- a/MAVProxy/modules/mavproxy_park.py +++ b/MAVProxy/modules/mavproxy_park.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ park Module André Kjellstrup, 2019 diff --git a/MAVProxy/modules/mavproxy_ppp.py b/MAVProxy/modules/mavproxy_ppp.py index cd1091ab74..f71c7ee7b2 100644 --- a/MAVProxy/modules/mavproxy_ppp.py +++ b/MAVProxy/modules/mavproxy_ppp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' A PPP over MAVLink module Andrew Tridgell diff --git a/MAVProxy/modules/mavproxy_proximity.py b/MAVProxy/modules/mavproxy_proximity.py index ce301726e4..8fef9e43ad 100644 --- a/MAVProxy/modules/mavproxy_proximity.py +++ b/MAVProxy/modules/mavproxy_proximity.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Proximity sensor module diff --git a/MAVProxy/modules/mavproxy_rc.py b/MAVProxy/modules/mavproxy_rc.py index e24f62cb74..7513b3a998 100644 --- a/MAVProxy/modules/mavproxy_rc.py +++ b/MAVProxy/modules/mavproxy_rc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''rc command handling''' import time, os, struct, sys diff --git a/MAVProxy/modules/mavproxy_relay.py b/MAVProxy/modules/mavproxy_relay.py index efd2199f01..6cea569cd9 100644 --- a/MAVProxy/modules/mavproxy_relay.py +++ b/MAVProxy/modules/mavproxy_relay.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''relay handling module''' import time diff --git a/MAVProxy/modules/mavproxy_restserver.py b/MAVProxy/modules/mavproxy_restserver.py index e15484cdf3..f1747d4e7e 100644 --- a/MAVProxy/modules/mavproxy_restserver.py +++ b/MAVProxy/modules/mavproxy_restserver.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' Server Module diff --git a/MAVProxy/modules/mavproxy_sensors.py b/MAVProxy/modules/mavproxy_sensors.py index 92bfe4b40e..59f22c3ac3 100644 --- a/MAVProxy/modules/mavproxy_sensors.py +++ b/MAVProxy/modules/mavproxy_sensors.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''monitor sensor consistancy''' import time, math diff --git a/MAVProxy/modules/mavproxy_serial.py b/MAVProxy/modules/mavproxy_serial.py index 8c421ff348..14c44c9d33 100644 --- a/MAVProxy/modules/mavproxy_serial.py +++ b/MAVProxy/modules/mavproxy_serial.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''serial_control MAVLink handling''' import time, os, fnmatch, sys diff --git a/MAVProxy/modules/mavproxy_signing.py b/MAVProxy/modules/mavproxy_signing.py index 9c9eac3b15..bf61981c32 100644 --- a/MAVProxy/modules/mavproxy_signing.py +++ b/MAVProxy/modules/mavproxy_signing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' control MAVLink2 signing ''' diff --git a/MAVProxy/modules/mavproxy_silvus.py b/MAVProxy/modules/mavproxy_silvus.py index 4353530e19..83f85d85b9 100644 --- a/MAVProxy/modules/mavproxy_silvus.py +++ b/MAVProxy/modules/mavproxy_silvus.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' silvus radio support To use add this in mavinit.scr for vehicle: diff --git a/MAVProxy/modules/mavproxy_smartcamera/__init__.py b/MAVProxy/modules/mavproxy_smartcamera/__init__.py index 9c743745ad..460987ed4f 100644 --- a/MAVProxy/modules/mavproxy_smartcamera/__init__.py +++ b/MAVProxy/modules/mavproxy_smartcamera/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #*************************************************************************** # Copyright Jaime Machuca #*************************************************************************** diff --git a/MAVProxy/modules/mavproxy_smartcamera/sc_ExifWriter.py b/MAVProxy/modules/mavproxy_smartcamera/sc_ExifWriter.py index 35acbcb498..149b467657 100755 --- a/MAVProxy/modules/mavproxy_smartcamera/sc_ExifWriter.py +++ b/MAVProxy/modules/mavproxy_smartcamera/sc_ExifWriter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #*************************************************************************** # Copyright 2017 Jaime Machuca #*************************************************************************** diff --git a/MAVProxy/modules/mavproxy_speech.py b/MAVProxy/modules/mavproxy_speech.py index 1278924e2f..a8a2ce4bc8 100644 --- a/MAVProxy/modules/mavproxy_speech.py +++ b/MAVProxy/modules/mavproxy_speech.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''tune command handling''' import time, os diff --git a/MAVProxy/modules/mavproxy_system_time.py b/MAVProxy/modules/mavproxy_system_time.py index 323d96e0d4..9b8d47c81f 100644 --- a/MAVProxy/modules/mavproxy_system_time.py +++ b/MAVProxy/modules/mavproxy_system_time.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' System_Time Module Peter barker, May 2018 diff --git a/MAVProxy/modules/mavproxy_test.py b/MAVProxy/modules/mavproxy_test.py index 3fec77ee62..8a12f4585d 100644 --- a/MAVProxy/modules/mavproxy_test.py +++ b/MAVProxy/modules/mavproxy_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''test flight for DCM noise''' import time, math diff --git a/MAVProxy/modules/mavproxy_timesync.py b/MAVProxy/modules/mavproxy_timesync.py index 2ef2c44d53..0a06c55839 100644 --- a/MAVProxy/modules/mavproxy_timesync.py +++ b/MAVProxy/modules/mavproxy_timesync.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/MAVProxy/modules/mavproxy_tracker.py b/MAVProxy/modules/mavproxy_tracker.py index 5f32c91fce..3b110fd667 100644 --- a/MAVProxy/modules/mavproxy_tracker.py +++ b/MAVProxy/modules/mavproxy_tracker.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Antenna tracker control module This module catches MAVLINK_MSG_ID_GLOBAL_POSITION_INT diff --git a/MAVProxy/modules/mavproxy_tuneopt.py b/MAVProxy/modules/mavproxy_tuneopt.py index 2aef5faa27..2fd7190881 100644 --- a/MAVProxy/modules/mavproxy_tuneopt.py +++ b/MAVProxy/modules/mavproxy_tuneopt.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''tune command handling''' import time, os diff --git a/MAVProxy/modules/mavproxy_ublox/__init__.py b/MAVProxy/modules/mavproxy_ublox/__init__.py index 6f4d14f54d..21fd022546 100644 --- a/MAVProxy/modules/mavproxy_ublox/__init__.py +++ b/MAVProxy/modules/mavproxy_ublox/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' UBX UBLOX Module Peter Barker, April 2017 diff --git a/MAVProxy/modules/mavproxy_wp.py b/MAVProxy/modules/mavproxy_wp.py index 95bbced0e4..5828afaa71 100644 --- a/MAVProxy/modules/mavproxy_wp.py +++ b/MAVProxy/modules/mavproxy_wp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''waypoint command handling''' from MAVProxy.modules.lib import mission_item_protocol diff --git a/MAVProxy/tools/MAVExplorer.py b/MAVProxy/tools/MAVExplorer.py index 69450a343e..6d97bc85ad 100755 --- a/MAVProxy/tools/MAVExplorer.py +++ b/MAVProxy/tools/MAVExplorer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py index b5820bba83..5208b63317 100755 --- a/MAVProxy/tools/mavflightview.py +++ b/MAVProxy/tools/mavflightview.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' view a mission log on a map diff --git a/scripts/run_flake8.py b/scripts/run_flake8.py index bc0811c4da..0f23afa8d5 100755 --- a/scripts/run_flake8.py +++ b/scripts/run_flake8.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Runs flake8 over Python files which contain a marker indicating