From 02797ffc5bfb667ba6c5b0c326eed5341c131e05 Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Mon, 27 Feb 2023 14:57:57 +0100 Subject: [PATCH 1/3] int enum --- eive_tmtc/tmtc/power/power.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/power/power.py b/eive_tmtc/tmtc/power/power.py index 7430f34..c748b00 100644 --- a/eive_tmtc/tmtc/power/power.py +++ b/eive_tmtc/tmtc/power/power.py @@ -45,7 +45,7 @@ class SetId(enum.IntEnum): SWITCHER_SET = 0 -class PcduSetIds: +class PcduSetIds(enum.IntEnum): SWITCHER_SET = 0 -- 2.43.0 From 8919f5c8e9feb030a5c29d5baf9cf1d517f49863 Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Mon, 27 Feb 2023 15:16:20 +0100 Subject: [PATCH 2/3] self test set for easier operator handling --- eive_tmtc/tmtc/acs/imtq.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eive_tmtc/tmtc/acs/imtq.py b/eive_tmtc/tmtc/acs/imtq.py index c0caf24..ee2e1e4 100644 --- a/eive_tmtc/tmtc/acs/imtq.py +++ b/eive_tmtc/tmtc/acs/imtq.py @@ -61,6 +61,7 @@ class ImtqSetId: NEGATIVE_Y_TEST = 13 POSITIVE_Z_TEST = 14 NEGATIVE_Z_TEST = 15 + SELF_TEST_SET = 16 class ImtqActionId: -- 2.43.0 From 3259cf080771d9936cbc436c6308bab58d1404d9 Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Mon, 27 Feb 2023 15:24:47 +0100 Subject: [PATCH 3/3] self test intro --- eive_tmtc/tmtc/acs/imtq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/acs/imtq.py b/eive_tmtc/tmtc/acs/imtq.py index ee2e1e4..9ca9eb5 100644 --- a/eive_tmtc/tmtc/acs/imtq.py +++ b/eive_tmtc/tmtc/acs/imtq.py @@ -308,7 +308,7 @@ ENG_HK_HEADERS = [ def handle_imtq_hk(printer: FsfwTmTcPrinter, hk_data: bytes, set_id: int): - if (set_id >= ImtqSetId.POSITIVE_X_TEST) and (set_id <= ImtqSetId.NEGATIVE_Z_TEST): + if set_id == ImtqSetId.SELF_TEST_SET: return handle_self_test_data(printer, hk_data) elif set_id == ImtqSetId.ENG_HK_NO_TORQUE: _LOGGER.info("Found engineering HK without torque") -- 2.43.0