- added GGA
- print messages as dict
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ class Gll(Nmea):
|
||||
self.checksum = None
|
||||
|
||||
def __repr__(self):
|
||||
return f"{self.latitude:.8f}{self.ns_indicator},{self.longitude:.8f}{self.ew_indicator}"
|
||||
return f"{self.__dict__}"
|
||||
|
||||
def __init__(self, name: str, tid: str):
|
||||
Nmea.__init__(self, name, tid=tid, msg_type="GLL")
|
||||
@@ -33,4 +33,4 @@ class Gll(Nmea):
|
||||
self.data.status = data_list[6]
|
||||
self.data.checksum = data_list[7]
|
||||
|
||||
print(f"{self.name}: {data}")
|
||||
print(f"{self.name}:{self.msg} {self.data}")
|
||||
|
||||
Reference in New Issue
Block a user