12 lines
294 B
Python
12 lines
294 B
Python
from msg_container import MsgContainer
|
|
from receiver import Nmea
|
|
|
|
|
|
class Gga(Nmea):
|
|
def __init__(self, name: str, tid: str):
|
|
Nmea.__init__(self, name, tid=tid, msg_type="GGA")
|
|
|
|
def on_recv(self, msg: MsgContainer):
|
|
data = msg.data.decode(encoding="utf-8")
|
|
print(f"{self.name}: {data}")
|