correctly parse isis mgm values

This commit is contained in:
Robin Müller 2022-08-18 18:15:48 +02:00
parent 7a309b4dc1
commit 7e2ea08277
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
3 changed files with 4 additions and 9 deletions

2
deps/spacepackets vendored

@ -1 +1 @@
Subproject commit 9464d5340d43072339105f80501d44244501e25d
Subproject commit ac1d14ebf64fb6479e7c6cf26907bbf9e56d239e

2
deps/tmtccmd vendored

@ -1 +1 @@
Subproject commit 7d50d4b7c4ce99599f10619b4ef1f9aa1fb2a415
Subproject commit e3343ef96a75974239608ae9246804ff9273e3d9

View File

@ -109,13 +109,8 @@ def handle_acs_ctrl_mgm_data(printer: FsfwTmTcPrinter, hk_data: bytes):
mgm_1_rm3100_floats_ut, current_idx = unpack_float_tuple(current_idx)
mgm_2_lis3_floats_ut, current_idx = unpack_float_tuple(current_idx)
mgm_3_rm3100_floats_ut, current_idx = unpack_float_tuple(current_idx)
i32_tuple_fmt = "!iii"
imtq_mgm_nt = struct.unpack(
i32_tuple_fmt,
hk_data[current_idx : current_idx + struct.calcsize(i32_tuple_fmt)],
)
imtq_mgm_ut = tuple(val / 1000.0 for val in imtq_mgm_nt)
current_idx += struct.calcsize(i32_tuple_fmt)
isis_floats_nt, current_idx = unpack_float_tuple(current_idx)
imtq_mgm_ut = tuple(val / 1000.0 for val in isis_floats_nt)
pw.dlog("ACS CTRL HK: MGM values [X,Y,Z] in floating point uT: ")
mgm_lists = [
mgm_0_lis3_floats_ut,