autotest: remove unused unit conversion methods

This commit is contained in:
Peter Barker 2024-04-10 12:29:55 +10:00 committed by Peter Barker
parent 065c7c6d9b
commit c59e96cc15
3 changed files with 0 additions and 49 deletions

View File

@ -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

View File

@ -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)

View File

@ -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__))