- added GGA

- print messages as dict
This commit is contained in:
2026-03-15 17:47:16 +01:00
parent 62a93a2cdc
commit 5435a07405
5 changed files with 52 additions and 9 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ class Gsa(Nmea):
self.checksum = None
def __repr__(self):
return f"mode: {self.mode}, fix_type: {self.mode}, sat_id: {self.sat_id}, p-dop: {self.p_dop:.3f}, h-dop: {self.h_dop:.3f}, v-dop: {self.v_dop:.3f}"
return f"{self.__dict__}"
def __init__(self, name: str, tid: str):
Nmea.__init__(self, name, tid=tid, msg_type="GSA")
@@ -33,4 +33,4 @@ class Gsa(Nmea):
self.data.v_dop = float(data_list[17])
self.data.checksum = data_list[18]
print(f"{self.name}: {data}")
print(f"{self.name}:{self.msg} {self.data}")