mirror of https://github.com/ArduPilot/ardupilot
autotest: remove unused unit conversion methods
This commit is contained in:
parent
065c7c6d9b
commit
c59e96cc15
|
@ -36,22 +36,6 @@ class udp_out(object):
|
|||
pass
|
||||
|
||||
|
||||
def ft2m(x):
|
||||
return x * 0.3048
|
||||
|
||||
|
||||
def m2ft(x):
|
||||
return x / 0.3048
|
||||
|
||||
|
||||
def kt2mps(x):
|
||||
return x * 0.514444444
|
||||
|
||||
|
||||
def mps2kt(x):
|
||||
return x / 0.514444444
|
||||
|
||||
|
||||
udp = udp_out("127.0.0.1:5501")
|
||||
|
||||
latitude = -35
|
||||
|
|
|
@ -44,21 +44,6 @@ class udp_socket(object):
|
|||
pass
|
||||
|
||||
|
||||
def ft2m(x):
|
||||
return x * 0.3048
|
||||
|
||||
|
||||
def m2ft(x):
|
||||
return x / 0.3048
|
||||
|
||||
|
||||
def kt2mps(x):
|
||||
return x * 0.514444444
|
||||
|
||||
|
||||
def mps2kt(x):
|
||||
return x / 0.514444444
|
||||
|
||||
udp = udp_socket("127.0.0.1:5123")
|
||||
fgout = udp_socket("127.0.0.1:5124", is_input=False)
|
||||
|
||||
|
|
|
@ -29,24 +29,6 @@ RADIUS_OF_EARTH = 6378100.0 # in meters
|
|||
windowID = []
|
||||
|
||||
|
||||
def m2ft(x):
|
||||
"""Meters to feet."""
|
||||
return float(x) / 0.3048
|
||||
|
||||
|
||||
def ft2m(x):
|
||||
"""Feet to meters."""
|
||||
return float(x) * 0.3048
|
||||
|
||||
|
||||
def kt2mps(x):
|
||||
return x * 0.514444444
|
||||
|
||||
|
||||
def mps2kt(x):
|
||||
return x / 0.514444444
|
||||
|
||||
|
||||
def topdir():
|
||||
"""Return top of git tree where autotest is running from."""
|
||||
d = os.path.dirname(os.path.realpath(__file__))
|
||||
|
|
Loading…
Reference in New Issue