Skip to content

Commit 35483e9

Browse files
authored
Merge branch 'master' into master
2 parents e52d41c + 77e4dc5 commit 35483e9

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

adafruit_gps.py

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ def __init__(self, uart, debug=False):
102102
self.altitude_m = None
103103
self.height_geoid = None
104104
self.speed_knots = None
105-
self.speed_kmh = None
106105
self.track_angle_deg = None
107-
self.total_mess_num = None
108-
self.mess_num = None
109106
self.sats = None
110107
self.isactivedata = None
111108
self.true_track = None
@@ -139,14 +136,8 @@ def update(self):
139136
self._parse_gpgll(args)
140137
elif data_type == b'GPRMC': # RMC, minimum location info
141138
self._parse_gprmc(args)
142-
elif data_type == b'GPVTG': # VTG, Track Made Good and Ground Speed
143-
self._parse_gpvtg(args)
144139
elif data_type == b'GPGGA': # GGA, 3d location fix
145140
self._parse_gpgga(args)
146-
elif data_type == b'GPGSA': # GSA, GPS DOP and active satellites
147-
self._parse_gpgsa(args)
148-
elif data_type == b'GPGSV': # GSV, Satellites in view
149-
self._parse_gpgsv(args)
150141
return True
151142

152143
def send_command(self, command, add_checksum=True):
@@ -239,8 +230,7 @@ def _parse_gpgll(self, args):
239230
# Set or update time to a friendly python time struct.
240231
if self.timestamp_utc is not None:
241232
self.timestamp_utc = time.struct_time((
242-
self.timestamp_utc.tm_year, self.timestamp_utc.tm_mon,
243-
self.timestamp_utc.tm_mday, hours, mins, secs, 0, 0, -1))
233+
0, 0, 0, hours, mins, secs, 0, 0, -1))
244234
else:
245235
self.timestamp_utc = time.struct_time((0, 0, 0, hours, mins,
246236
secs, 0, 0, -1))
@@ -306,19 +296,6 @@ def _parse_gprmc(self, args):
306296
self.timestamp_utc = time.struct_time((year, month, day, 0, 0,
307297
0, 0, 0, -1))
308298

309-
def _parse_gpvtg(self, args):
310-
data = args.split(',')
311-
312-
# Parse true track made good (degrees)
313-
self.true_track = _parse_float(data[0])
314-
315-
# Parse magnetic track made good
316-
self.mag_track = _parse_float(data[2])
317-
318-
# Parse speed
319-
self.speed_knots = _parse_float(data[4])
320-
self.speed_kmh = _parse_float(data[6])
321-
322299
def _parse_gpgga(self, args):
323300
# Parse the arguments (everything after data type) for NMEA GPGGA
324301
# 3D location fix sentence.

0 commit comments

Comments
 (0)