fix typo for GNRMC
This commit is contained in:
parent
5e349a9705
commit
dc5dbc0f7f
@ -495,7 +495,7 @@ class DATA_SYSTEM(HBSYSTEM):
|
|||||||
# GNRMC
|
# GNRMC
|
||||||
if 'GNRMC' in final_packet:
|
if 'GNRMC' in final_packet:
|
||||||
logger.info('GNRMC location')
|
logger.info('GNRMC location')
|
||||||
nmea_parse = re.sub('\n.*|V\*.*', '', final_packet)
|
nmea_parse = re.sub('.*\$|\n.*|V\*.*', '', final_packet)
|
||||||
loc = pynmea2.parse(nmea_parse, check=False)
|
loc = pynmea2.parse(nmea_parse, check=False)
|
||||||
logger.info('Latitude: ' + str(loc.lat) + str(loc.lat_dir) + ' Longitude: ' + str(loc.lon) + str(loc.lon_dir) + ' Direction: ' + str(loc.true_course) + ' Speed: ' + str(loc.spd_over_grnd) + '\n')
|
logger.info('Latitude: ' + str(loc.lat) + str(loc.lat_dir) + ' Longitude: ' + str(loc.lon) + str(loc.lon_dir) + ' Direction: ' + str(loc.true_course) + ' Speed: ' + str(loc.spd_over_grnd) + '\n')
|
||||||
# Begin APRS format and upload
|
# Begin APRS format and upload
|
||||||
|
Loading…
Reference in New Issue
Block a user