@@ -127,14 +127,8 @@ def update(self):
127
127
self ._parse_gpgll (args )
128
128
elif data_type == b'GPRMC' : # RMC, minimum location info
129
129
self ._parse_gprmc (args )
130
- elif data_type == b'GPVTG' : # VTG, Track Made Good and Ground Speed
131
- self ._parse_gpvtg (args )
132
130
elif data_type == b'GPGGA' : # GGA, 3d location fix
133
131
self ._parse_gpgga (args )
134
- elif data_type == b'GPGSA' : # GSA, GPS DOP and active satellites
135
- self ._parse_gpgsa (args )
136
- elif data_type == b'GPGSV' : # GSV, Satellites in view
137
- self ._parse_gpgsv (args )
138
132
return True
139
133
140
134
def send_command (self , command , add_checksum = True ):
@@ -157,7 +151,7 @@ def send_command(self, command, add_checksum=True):
157
151
def has_fix (self ):
158
152
"""True if a current fix for location information is available."""
159
153
return self .fix_quality is not None and self .fix_quality >= 1
160
-
154
+
161
155
@property
162
156
def has_3d_fix (self ):
163
157
"""True if a current 3d fix for location information is available"""
@@ -291,11 +285,6 @@ def _parse_gprmc(self, args):
291
285
self .timestamp_utc = time .struct_time ((year , month , day , 0 , 0 ,
292
286
0 , 0 , 0 , - 1 ))
293
287
294
- def _parse_gpvtg (self , args ):
295
- # Not implemented yet
296
- a = args # This line is to try to get travis to pass
297
- return None
298
-
299
288
def _parse_gpgga (self , args ):
300
289
# Parse the arguments (everything after data type) for NMEA GPGGA
301
290
# 3D location fix sentence.
@@ -331,13 +320,3 @@ def _parse_gpgga(self, args):
331
320
self .horizontal_dilution = _parse_float (data [7 ])
332
321
self .altitude_m = _parse_float (data [8 ])
333
322
self .height_geoid = _parse_float (data [10 ])
334
-
335
- def _parse_gpgsa (self , args ):
336
- # Not implemented yet
337
- a = args # This line is to try to get travis to pass
338
- return None
339
-
340
- def _parse_gpgsv (self , args ):
341
- # Not implemented yet
342
- a = args # This line is to try to get travis to pass
343
- return None
0 commit comments