Skip to content

Commit

Permalink
autotest: remove unused unit conversion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Apr 11, 2024
1 parent 065c7c6 commit c59e96c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 49 deletions.
16 changes: 0 additions & 16 deletions Tools/autotest/fakepos.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ def write(self, buf):
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
Expand Down
15 changes: 0 additions & 15 deletions Tools/autotest/pysim/fg_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,6 @@ def write(self, buf):
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)

Expand Down
18 changes: 0 additions & 18 deletions Tools/autotest/pysim/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,6 @@
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__))
Expand Down

0 comments on commit c59e96c

Please sign in to comment.