RW CMDs #61
@ -29,7 +29,8 @@ def handle_rw_hk_data(
|
|||||||
)
|
)
|
||||||
current_idx += inc_len
|
current_idx += inc_len
|
||||||
pw.dlog(
|
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:
|
if set_id == RwSetIds.LAST_RESET:
|
||||||
pw.dlog(
|
pw.dlog(
|
||||||
@ -100,8 +101,8 @@ def handle_rw_hk_data(
|
|||||||
)
|
)
|
||||||
pw.dlog("UART COM information:")
|
pw.dlog("UART COM information:")
|
||||||
pw.dlog(
|
pw.dlog(
|
||||||
f"NumBytesWritten | NumBytesRead | ParityErr | NoiseErr | FrameErr | "
|
f"NumBytesWritten | NumBytesRead | ParityErrs | NoiseErrs | FrameErrs | "
|
||||||
f"RegOverrunErr | TotalErr"
|
f"RegOverrunErrs | TotalErrs"
|
||||||
)
|
)
|
||||||
pw.dlog(
|
pw.dlog(
|
||||||
f"{uart_num_of_bytes_written} | {uart_num_of_bytes_read} | {uart_num_parity_errors} | "
|
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}"
|
f"{uart_total_num_errors}"
|
||||||
)
|
)
|
||||||
pw.dlog("SPI COM Info:")
|
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:
|
if current_idx > 0:
|
||||||
printer.print_validity_buffer(
|
printer.print_validity_buffer(
|
||||||
validity_buffer=hk_data[current_idx:], num_vars=27
|
validity_buffer=hk_data[current_idx:], num_vars=27
|
||||||
|
Loading…
Reference in New Issue
Block a user