From 40b2973d9e3165091aabab70d3548df1e41bbecf Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Mon, 27 Mar 2023 10:30:13 +0200 Subject: [PATCH 1/2] enum for str submodes and added default submode --- eive_tmtc/tmtc/acs/star_tracker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/acs/star_tracker.py b/eive_tmtc/tmtc/acs/star_tracker.py index 55254f1..80c82d3 100644 --- a/eive_tmtc/tmtc/acs/star_tracker.py +++ b/eive_tmtc/tmtc/acs/star_tracker.py @@ -175,7 +175,8 @@ class PartitionSize: STAR_TRACKER_FIRMWARE = 464572 -class Submode: +class Submode(enum.IntEnum): + DEFAULT = 0 BOOTLOADER = 1 FIRMWARE = 2 From 3c25af39c6a3a332ae738d3c64d81d9cc777909d Mon Sep 17 00:00:00 2001 From: Markus Kranz Date: Mon, 27 Mar 2023 11:11:07 +0200 Subject: [PATCH 2/2] change d --- eive_tmtc/tmtc/com/ccsds_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eive_tmtc/tmtc/com/ccsds_handler.py b/eive_tmtc/tmtc/com/ccsds_handler.py index 5bc1466..380e008 100644 --- a/eive_tmtc/tmtc/com/ccsds_handler.py +++ b/eive_tmtc/tmtc/com/ccsds_handler.py @@ -45,7 +45,7 @@ class ActionId(enum.IntEnum): class Submode(enum.IntEnum): # Informative, do not command this. - UNSET = 0 + OFF = 0 DATARATE_LOW = 1 DATARATE_HIGH = 2