Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion CSVReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
in this case the GPS time was in seconds-since-week-start, so a conversion to ms is required

'''
from __future__ import print_function
from builtins import range
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

Partly based on SDLog2Parser by Anton Babushkin
'''
from __future__ import print_function
from builtins import range
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion examples/apmsetrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''
set stream rate on an APM
'''
from __future__ import print_function
from builtins import range

import sys
Expand Down
1 change: 0 additions & 1 deletion examples/bwtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''
check bandwidth of link
'''
from __future__ import print_function
import time

from pymavlink import mavutil
Expand Down
2 changes: 0 additions & 2 deletions examples/magtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
rotate APMs on bench to test magnetometers

'''
from __future__ import print_function

import time
from math import radians

Expand Down
2 changes: 0 additions & 2 deletions examples/mav_accel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
'''
show accel calibration for a set of logs
'''
from __future__ import print_function

from argparse import ArgumentParser
parser = ArgumentParser()
parser.add_argument("--no-timestamps", dest="notimestamps", action='store_true', help="Log doesn't have timestamps")
Expand Down
1 change: 0 additions & 1 deletion examples/mav_replay_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''
estimate attitude from an ArduPilot replay log using a python state estimator
'''
from __future__ import print_function
from builtins import range

import os
Expand Down
1 change: 0 additions & 1 deletion examples/mavgps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@author: Matthew Lloyd (github@matthewlloyd.net)
"""
from __future__ import print_function

from pymavlink import mavutil
from argparse import ArgumentParser
Expand Down
2 changes: 0 additions & 2 deletions examples/mavtcpsniff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
Copyright Sept 2012 David "Buzz" Bussenschutt
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

import time

from pymavlink import mavutil
Expand Down
2 changes: 0 additions & 2 deletions examples/mavtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
"""
Generate a message using different MAVLink versions, put in a buffer and then read from it.
"""

from __future__ import print_function
from builtins import object

from pymavlink.dialects.v10 import ardupilotmega as mavlink1
Expand Down
2 changes: 0 additions & 2 deletions examples/mavtester.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
'''
test mavlink messages
'''
from __future__ import print_function

from pymavlink import mavtest, mavutil

from argparse import ArgumentParser
Expand Down
1 change: 0 additions & 1 deletion examples/wptogpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
example program to extract GPS data from a waypoint file, and create a GPX
file, for loading into google earth
'''
from __future__ import print_function
from builtins import range

import time
Expand Down
1 change: 0 additions & 1 deletion generator/mavgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

'''

from __future__ import print_function
import sys
if sys.version_info <= (3,10):
from future import standard_library
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_ada.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
Based on mavgen_python.py
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

import os
import math
import shutil
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_cpp11.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
Copyright Vladimir Ermakov 2016
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

import sys, textwrap, os, time
from . import mavparse, mavtemplate
import collections
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

from builtins import range
from builtins import object

Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Based on original work Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

from builtins import range

import os
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_javascript_stable.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Based on original work Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

from builtins import range

import os
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_lua.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
'''
parse a MAVLink protocol XML file and generate a Ardupilot LUA mavlink module
'''
from __future__ import print_function

from builtins import range

import os
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_objc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Copyright John Boiles 2013
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

import os
from . import mavparse, mavtemplate

Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
"""
from __future__ import print_function

from builtins import range

import os
Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_swift.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Copyright Max Odnovolyk 2015
Released under GNU GPL version 3 or later
"""
from __future__ import print_function

import os
from . import mavparse, mavtemplate

Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_typescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
Based on original work Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
"""
from __future__ import print_function

import os
from . import mavtemplate

Expand Down
2 changes: 0 additions & 2 deletions generator/mavgen_wlua.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
Copyright Holger Steinhaus 2012
Released under GNU GPL version 3 or later
'''
from __future__ import print_function

from builtins import range

import os
Expand Down
1 change: 0 additions & 1 deletion generator/mavparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
'''
from __future__ import print_function
from builtins import range
from builtins import object

Expand Down
1 change: 0 additions & 1 deletion mavextra.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
'''
from __future__ import print_function
from __future__ import absolute_import
from builtins import object
from builtins import sum as builtin_sum
Expand Down
3 changes: 0 additions & 3 deletions mavparm.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
'''
module for loading/saving sets of mavlink parameters
'''
from __future__ import print_function


import fnmatch, math, time, struct
from pymavlink import mavutil

Expand Down
1 change: 0 additions & 1 deletion mavtestgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Copyright Andrew Tridgell 2011
Released under GNU GPL version 3 or later
'''
from __future__ import print_function
from builtins import range

import sys
Expand Down
1 change: 0 additions & 1 deletion mavutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Copyright Andrew Tridgell 2011-2019
Released under GNU LGPL version 3 or later
'''
from __future__ import print_function
from builtins import object

import socket, math, struct, time, os, fnmatch, array, sys, errno
Expand Down
1 change: 0 additions & 1 deletion mavwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Copyright the ArduPilot Project
Released under GNU LGPL version 3 or later
'''
from __future__ import print_function
from builtins import range
from builtins import object

Expand Down
2 changes: 1 addition & 1 deletion quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Quaternion implementation for use in pymavlink
"""

from __future__ import absolute_import, division, print_function
from __future__ import absolute_import, division

from builtins import object
import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions rotmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

'''rotation matrix class
'''
from __future__ import print_function

from math import sin, cos, sqrt, asin, atan2, pi, acos, radians


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import absolute_import, print_function
from __future__ import absolute_import
from setuptools.command.build_py import build_py
from io import open
# Work around mbcs bug in distutils.
Expand Down
2 changes: 0 additions & 2 deletions tests/test_fgFDM.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"""
Unit tests for the fgFDM library
"""

from __future__ import print_function
import unittest

from pymavlink.fgFDM import fgFDMError, fgFDMVariable, fgFDMVariableList, fgFDM
Expand Down
2 changes: 0 additions & 2 deletions tests/test_mavexpression.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"""
Unit tests for the mavexpression library
"""

from __future__ import print_function
import unittest
import random

Expand Down
2 changes: 0 additions & 2 deletions tests/test_mavlogdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"""
regression tests for mavlogdump.py
"""

from __future__ import absolute_import, print_function
import unittest
import os
import pkg_resources
Expand Down
1 change: 0 additions & 1 deletion tests/test_mavparm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Unit tests for the mavparm library
"""

from __future__ import print_function
import unittest
import os

Expand Down
1 change: 0 additions & 1 deletion tests/test_mavxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
Module to test MAVXML
"""

from __future__ import print_function
import unittest
import pkg_resources

Expand Down
2 changes: 1 addition & 1 deletion tests/test_quaternion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Unit tests for the quaternion library
"""

from __future__ import absolute_import, division, print_function
from __future__ import absolute_import, division
import unittest
import numpy as np
from pymavlink.quaternion import QuaternionBase, Quaternion
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rotmat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Unit tests for the rotmat library
"""

from __future__ import absolute_import, print_function
from __future__ import absolute_import
from math import radians, degrees
import unittest
import random
Expand Down
2 changes: 1 addition & 1 deletion tests/test_trim.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
test for trimming under Python 3
"""

from __future__ import absolute_import, print_function
from __future__ import absolute_import
import unittest
import os
import pkg_resources
Expand Down
2 changes: 1 addition & 1 deletion tests/test_wp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
regression tests for mavwp.py
"""

from __future__ import absolute_import, print_function
from __future__ import absolute_import
import unittest
import os
import pkg_resources
Expand Down
2 changes: 0 additions & 2 deletions tools/isb_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
'''
extract ISBH and ISBD messages from AP_Logging files into a csv file
'''
from __future__ import print_function

import numpy
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion tools/magfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''
fit best estimate of magnetometer offsets
'''
from __future__ import print_function
from builtins import range

from argparse import ArgumentParser
Expand Down
3 changes: 0 additions & 3 deletions tools/magfit_WMM.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
'''
fit best estimate of magnetometer offsets, diagonals, off-diagonals, cmot and scaling using WMM target
'''
# to allow print to file with both python 2 and 3
from __future__ import print_function

import sys, time, os, math, copy

from argparse import ArgumentParser
Expand Down
1 change: 0 additions & 1 deletion tools/magfit_compassmot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
'''
estimate COMPASS_MOT_* parameters for throttle based compensation
'''
from __future__ import print_function
from builtins import range
import math

Expand Down
Loading