summaryrefslogtreecommitdiff
path: root/gpssim.py
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-06-20 10:45:43 -0700
committerGary E. Miller <gem@rellim.com>2018-06-20 10:45:43 -0700
commit5113a1fe106faa9d76121d288c1b46e905f33726 (patch)
treea6bf8ea49567dde3543e2eeaa7fd8ee3bbb0adde /gpssim.py
parent947a4ec5859a9080c893d8b727a421113c0619c2 (diff)
downloadgpsd-5113a1fe106faa9d76121d288c1b46e905f33726.tar.gz
gpssim.py: Fix for PEP8
Diffstat (limited to 'gpssim.py')
-rw-r--r--gpssim.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpssim.py b/gpssim.py
index 305d67fe..0969fc76 100644
--- a/gpssim.py
+++ b/gpssim.py
@@ -51,15 +51,15 @@ class ksv(object):
lat = gps.Deg2Rad(self.lat)
lon = gps.Deg2Rad(self.lon)
lat += distance * math.cos(tc)
- dphi = math.log(math.tan(lat / 2 + math.pi / 4)
- / math.tan(self.lat / 2 + math.pi / 4))
+ dphi = math.log(math.tan(lat / 2 + math.pi / 4) /
+ math.tan(self.lat / 2 + math.pi / 4))
if abs(lat - self.lat) < math.sqrt(1e-15):
q = math.cos(self.lat)
else:
q = (lat - self.lat) / dphi
dlon = -distance * math.sin(tc) / q
- self.lon = gps.Rad2Deg(math.mod(lon + dlon + math.pi, 2 * math.pi)
- - math.pi)
+ self.lon = gps.Rad2Deg(math.mod(lon + dlon + math.pi, 2 * math.pi) -
+ math.pi)
self.lat = gps.Rad2Deg(lat)
# Satellite orbital elements are available at: