@@ -90,8 +90,8 @@ def __init__(self, uart, debug=False):
90
90
self .height_geoid = None
91
91
self .speed_knots = None
92
92
self .track_angle_deg = None
93
- self ._sats = None # Temporary holder for information from GSV messages
94
- self .sats = None # Completed information from GSV messages
93
+ self ._sats = None # Temporary holder for information from GSV messages
94
+ self .sats = None # Completed information from GSV messages
95
95
self .isactivedata = None
96
96
self .true_track = None
97
97
self .mag_track = None
@@ -132,19 +132,19 @@ def update(self):
132
132
# GP - GPS
133
133
# GQ - QZSS
134
134
# GN - GNSS / More than one of the above
135
- if talker not in (b'GA' , b'GB' , b'GI' , b'GL' , b'GP' , b'GQ' , b'GN' ):
135
+ if talker not in (b"GA" , b"GB" , b"GI" , b"GL" , b"GP" , b"GQ" , b"GN" ):
136
136
# It's not a known GNSS source of data
137
137
return True
138
138
139
- if sentence_type == b' GLL' : # Geographic position - Latitude/Longitude
139
+ if sentence_type == b" GLL" : # Geographic position - Latitude/Longitude
140
140
self ._parse_gpgll (args )
141
- elif sentence_type == b' RMC' : # Minimum location info
141
+ elif sentence_type == b" RMC" : # Minimum location info
142
142
self ._parse_gprmc (args )
143
- elif sentence_type == b' GGA' : # 3D location fix
143
+ elif sentence_type == b" GGA" : # 3D location fix
144
144
self ._parse_gpgga (args )
145
- elif sentence_type == b' GSV' : # Satellites in view
145
+ elif sentence_type == b" GSV" : # Satellites in view
146
146
self ._parse_gpgsv (talker , args )
147
- elif sentence_type == b' GSA' : # GPS DOP and active satellites
147
+ elif sentence_type == b" GSA" : # GPS DOP and active satellites
148
148
self ._parse_gpgsa (talker , args )
149
149
return True
150
150
@@ -258,7 +258,7 @@ def _parse_sentence(self):
258
258
259
259
def _parse_talker (self , data_type ):
260
260
# Split the data_type into talker and sentence_type
261
- if data_type [0 ] == b'P' : # Proprietary codes
261
+ if data_type [0 ] == b"P" : # Proprietary codes
262
262
return (data_type [:1 ], data_type [1 :])
263
263
else :
264
264
return (data_type [:2 ], data_type [2 :])
@@ -425,7 +425,7 @@ def _parse_gpgga(self, args):
425
425
self .height_geoid = _parse_float (data [10 ])
426
426
427
427
def _parse_gpgsa (self , talker , args ):
428
- talker = talker .decode (' ascii' )
428
+ talker = talker .decode (" ascii" )
429
429
data = args .split ("," )
430
430
if data is None or (data [0 ] == "" ):
431
431
return # Unexpected number of params
@@ -449,7 +449,7 @@ def _parse_gpgsa(self, talker, args):
449
449
def _parse_gpgsv (self , talker , args ):
450
450
# Parse the arguments (everything after data type) for NMEA GPGGA
451
451
# 3D location fix sentence.
452
- talker = talker .decode (' ascii' )
452
+ talker = talker .decode (" ascii" )
453
453
data = args .split ("," )
454
454
if data is None or (data [0 ] == "" ):
455
455
return # Unexpected number of params.
0 commit comments