printout improvements

This commit is contained in:
Robin Müller 2022-08-16 12:53:05 +02:00
parent be1cbfad8d
commit 19b35f7e18
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -57,13 +57,12 @@ def pack_acs_ctrl_command(
def handle_acs_ctrl_mgm_data(printer: FsfwTmTcPrinter, hk_data: bytes):
print("Received ACS CTRL data")
current_idx = 0
pw = PrintWrapper(printer)
if len(hk_data) < 61:
pw.dlog(
f"Received MGM HK data with length {len(hk_data)} shorter than expected 61 bytes"
f"ACS CTRL HK: MGM HK data with length {len(hk_data)} shorter than expected 61 bytes"
)
pw.dlog(f"Raw Data: {hk_data.hex(sep=',')}")
return
@ -88,7 +87,7 @@ def handle_acs_ctrl_mgm_data(printer: FsfwTmTcPrinter, hk_data: bytes):
)
imtq_mgm_ut = tuple(val / 1000.0 for val in imtq_mgm_nt)
current_idx += struct.calcsize(i32_tuple_fmt)
print("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_0_lis3_floats_ut,
mgm_1_rm3100_floats_ut,