refactored

This commit is contained in:
2026-03-29 15:37:18 +02:00
parent f7b1b18b2f
commit 670c4db7a4
9 changed files with 46 additions and 28 deletions
+3
View File
@@ -1,6 +1,9 @@
class UbxMsg:
def __init__(self, mclass: int, mid: int):
self.mclass = mclass
self.mid = mid
@classmethod
def from_bytes(cls, data: bytes):
+6
View File
@@ -2,6 +2,9 @@ import struct
from ubx.messages.msg import UbxMsg
class Sig(UbxMsg):
def __init__(self):
UbxMsg.__init__(self, 0x01, 0x43)
class Group1:
@classmethod
def from_bytes(cls, data: bytes):
@@ -39,6 +42,9 @@ class Sig(UbxMsg):
return obj.__dict__
class Sat(UbxMsg):
def __init__(self):
UbxMsg.__init__(self, 0x01, 0x35)
class Group1:
@classmethod
def from_bytes(cls, data: bytes):
+3
View File
@@ -2,6 +2,9 @@ import struct
from ubx.messages.msg import UbxMsg
class RawX(UbxMsg):
def __init__(self):
UbxMsg.__init__(self, 0x02, 0x15)
class Group1:
@classmethod
def from_bytes(cls, data: bytes):