correctly parse isis mgm values
This commit is contained in:
parent
7a309b4dc1
commit
7e2ea08277
2
deps/spacepackets
vendored
2
deps/spacepackets
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 9464d5340d43072339105f80501d44244501e25d
|
Subproject commit ac1d14ebf64fb6479e7c6cf26907bbf9e56d239e
|
2
deps/tmtccmd
vendored
2
deps/tmtccmd
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 7d50d4b7c4ce99599f10619b4ef1f9aa1fb2a415
|
Subproject commit e3343ef96a75974239608ae9246804ff9273e3d9
|
@ -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_1_rm3100_floats_ut, current_idx = unpack_float_tuple(current_idx)
|
||||||
mgm_2_lis3_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)
|
mgm_3_rm3100_floats_ut, current_idx = unpack_float_tuple(current_idx)
|
||||||
i32_tuple_fmt = "!iii"
|
isis_floats_nt, current_idx = unpack_float_tuple(current_idx)
|
||||||
imtq_mgm_nt = struct.unpack(
|
imtq_mgm_ut = tuple(val / 1000.0 for val in isis_floats_nt)
|
||||||
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)
|
|
||||||
pw.dlog("ACS CTRL HK: MGM values [X,Y,Z] in floating point uT: ")
|
pw.dlog("ACS CTRL HK: MGM values [X,Y,Z] in floating point uT: ")
|
||||||
mgm_lists = [
|
mgm_lists = [
|
||||||
mgm_0_lis3_floats_ut,
|
mgm_0_lis3_floats_ut,
|
||||||
|
Loading…
Reference in New Issue
Block a user