Merge pull request 'fixed mgm proc output' (#128) from mgm-proc-fix into main
Reviewed-on: #128
This commit is contained in:
commit
e4963fb712
@ -534,6 +534,7 @@ def handle_mgm_data_processed(pw: PrintWrapper, hk_data: bytes):
|
|||||||
mgm_vec = struct.unpack(fmt_str, hk_data[current_idx : current_idx + inc_len])
|
mgm_vec = struct.unpack(fmt_str, hk_data[current_idx : current_idx + inc_len])
|
||||||
mgm_vec = [f"{val:8.3f}" for val in mgm_vec]
|
mgm_vec = [f"{val:8.3f}" for val in mgm_vec]
|
||||||
pw.dlog(f"MGM {i}: {mgm_vec}")
|
pw.dlog(f"MGM {i}: {mgm_vec}")
|
||||||
|
current_idx += inc_len
|
||||||
fmt_str = "!ddd"
|
fmt_str = "!ddd"
|
||||||
inc_len = struct.calcsize(fmt_str)
|
inc_len = struct.calcsize(fmt_str)
|
||||||
mgm_vec_tot = struct.unpack(fmt_str, hk_data[current_idx : current_idx + inc_len])
|
mgm_vec_tot = struct.unpack(fmt_str, hk_data[current_idx : current_idx + inc_len])
|
||||||
|
Loading…
Reference in New Issue
Block a user