Skip to content

Commit

Permalink
gps: replace minus, better name for nmea items
Browse files Browse the repository at this point in the history
  • Loading branch information
tajgr committed Jun 19, 2024
1 parent 9a22eee commit 77eeb64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osgar/drivers/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ def parse_nmea(line):
nmea_data["sats"] = None if nmea_list[7] == "" else int(nmea_list[7])
nmea_data["hdop"] = None if nmea_list[8] == "" else float(nmea_list[8])
nmea_data["alt"] = None if nmea_list[9] == "" else float(nmea_list[9])
nmea_data["a-units"] = None if nmea_list[10] == "" else nmea_list[10]
nmea_data["a_units"] = None if nmea_list[10] == "" else nmea_list[10]
nmea_data["undulation"] = None if nmea_list[11] == "" else float(nmea_list[11])
nmea_data["u-units"] = None if nmea_list[12] == "" else nmea_list[12]
nmea_data["u_units"] = None if nmea_list[12] == "" else nmea_list[12]
nmea_data["age"] = None if nmea_list[13] == "" else float(nmea_list[13])
stn_id = nmea_list[14].split("*")[0]
nmea_data["stn_id"] = None if stn_id == "" else stn_id
Expand Down

0 comments on commit 77eeb64

Please sign in to comment.