- refactored

- added claude.md
This commit is contained in:
2026-05-24 09:21:26 +02:00
parent 670c4db7a4
commit 74b949f864
4 changed files with 89 additions and 10 deletions
+7 -6
View File
@@ -14,6 +14,7 @@ from nmea.packetizer import NmeaPacketizer
from nmea.messages import Gll, Gsa, Gsv, Gga, Rmc
from ubx.ubx import frame_create
from ubx.msg_types import *
from ubx.packetizer import UbxPacketizer
from ubx.messages import Sig, Sat, RawX, UbxMsg
from ubx.listener import UbxListener
@@ -146,8 +147,8 @@ if __name__ == "__main__":
UbxListener(Sat()),
UbxListener(RawX()),
UbxListener(UbxMsg(0x05, 0x01)),
UbxListener(UbxMsg(0x05, 0x00)),
UbxListener(UbxMsg(UBX_CLASS_ACK, UBX_ID_ACK_ACK)),
UbxListener(UbxMsg(UBX_CLASS_ACK, UBX_ID_ACK_NACK)),
]
# Topology
@@ -192,16 +193,16 @@ if __name__ == "__main__":
try:
for grm in [" neo-f9p", "zed-x20p"]:
# Poll UBX-NAV-CLOCK (0x01 0x22)
frame = frame_create(0x01, 0x22, b'')
frame = frame_create(UBX_CLASS_NAV, UBX_ID_CLOCK)
transceiver[grm].send(frame)
# Poll UBX-NAV-SIG (0x01 0x43)
frame = frame_create(0x01, 0x43, b'')
frame = frame_create(UBX_CLASS_NAV, UBX_ID_NAV_SIG)
transceiver[grm].send(frame)
# Poll UBX-NAV-SAT (0x01 0x35)
frame = frame_create(0x01, 0x35, b'')
frame = frame_create(UBX_CLASS_NAV, UBX_ID_NAV_SAT)
transceiver[grm].send(frame)
# Poll UBX-RXM-RAWX (0x02 0x15)
frame = frame_create(0x02, 0x15, b'')
frame = frame_create(UBX_CLASS_RXM, UBX_ID_RXM_RAW)
transceiver[grm].send(frame)
except ValueError:
break