From 7e460d05c3530b3053b3b10054788d98ed509b20 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 5 May 2022 13:39:20 +0200 Subject: [PATCH] complete RW HK handling --- pus_tm/devs/reaction_wheels.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pus_tm/devs/reaction_wheels.py b/pus_tm/devs/reaction_wheels.py index cbdde25..e5a8487 100644 --- a/pus_tm/devs/reaction_wheels.py +++ b/pus_tm/devs/reaction_wheels.py @@ -29,7 +29,8 @@ def handle_rw_hk_data( ) current_idx += inc_len pw.dlog( - f"Speed {speed} rpm | Reference Speed {ref_speed} rpm | State {state} | CLC Mode {clc_mode}" + f"Speed {speed} rpm | Reference Speed {ref_speed} rpm | State {state} | " + f"CLC Mode {clc_mode}" ) if set_id == RwSetIds.LAST_RESET: pw.dlog( @@ -100,8 +101,8 @@ def handle_rw_hk_data( ) pw.dlog("UART COM information:") pw.dlog( - f"NumBytesWritten | NumBytesRead | ParityErr | NoiseErr | FrameErr | " - f"RegOverrunErr | TotalErr" + f"NumBytesWritten | NumBytesRead | ParityErrs | NoiseErrs | FrameErrs | " + f"RegOverrunErrs | TotalErrs" ) pw.dlog( f"{uart_num_of_bytes_written} | {uart_num_of_bytes_read} | {uart_num_parity_errors} | " @@ -109,6 +110,11 @@ def handle_rw_hk_data( f"{uart_total_num_errors}" ) pw.dlog("SPI COM Info:") + pw.dlog(f"NumBytesWritten | NumBytesRead | RegOverrunErrs | TotalErrs") + pw.dlog( + f"{spi_num_bytes_written} | {spi_num_bytes_read} | {spi_num_reg_overrun_errors} | " + f"{spi_total_num_errors}" + ) if current_idx > 0: printer.print_validity_buffer( validity_buffer=hk_data[current_idx:], num_vars=27