From e47eb577fada9e1d84abc4d5fdd13862f5f4e7bf Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Thu, 23 Feb 2023 15:20:46 +0100 Subject: [PATCH] parameter command to set negative window for AD frames --- eive_tmtc/tmtc/com/pdec_handler.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eive_tmtc/tmtc/com/pdec_handler.py b/eive_tmtc/tmtc/com/pdec_handler.py index c11d99c..508a5da 100644 --- a/eive_tmtc/tmtc/com/pdec_handler.py +++ b/eive_tmtc/tmtc/com/pdec_handler.py @@ -77,6 +77,19 @@ def pack_pdec_handler_test( ).pack() ) ) + if op_code == OpCode.NEGATIVE_WINDOW: + q.add_log_cmd(f"{prefix}: {Info.NEGATIVE_WINDOW}") + nw = int(input("Specify negative window to set: ")) + q.add_pus_tc( + create_load_param_cmd( + create_scalar_u8_parameter( + object_id, + 0, + ParameterId.NEGATIVE_WINDOW, + nw, + ).pack() + ) + ) @tmtc_definitions_provider