correctly parse isis mgm values
This commit is contained in:
2
deps/spacepackets
vendored
2
deps/spacepackets
vendored
Submodule deps/spacepackets updated: 9464d5340d...ac1d14ebf6
2
deps/tmtccmd
vendored
2
deps/tmtccmd
vendored
Submodule deps/tmtccmd updated: 7d50d4b7c4...e3343ef96a
@ -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,
|
||||
|
Reference in New Issue
Block a user