From 4ef406ff9ae6e34cd98953637bceaf1f8f15dcce Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 16 Mar 2026 09:26:45 +0100 Subject: [PATCH] - added ubx parse - fixed ubx create --- ubx/ubx.py | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/ubx/ubx.py b/ubx/ubx.py index f9129bf..62ae25f 100644 --- a/ubx/ubx.py +++ b/ubx/ubx.py @@ -10,17 +10,37 @@ def checksum(data: bytes) -> bytes: return struct.pack("BB", ck_a, ck_b) -def frame_create(msg_class: int, msg_id: int, payload: bytes) -> bytes: +def frame_create(_class: int, _id: int, _data: bytes) -> bytes: hdr = b'\xb5\x62' - frame = struct.pack('B', msg_class) - frame += struct.pack('B', msg_id) - frame += struct.pack('