From b4954a381e38ff019ad889b00da44d2097ed4799 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Thu, 14 May 2026 22:26:33 +0200 Subject: [PATCH 1/2] fix (constellation): correct allowed states for reset_counters command in README --- aidatlu/constellation/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aidatlu/constellation/README.md b/aidatlu/constellation/README.md index 07e8cc5..6612684 100644 --- a/aidatlu/constellation/README.md +++ b/aidatlu/constellation/README.md @@ -105,7 +105,7 @@ The following metrics are distributed by this satellite and can be subscribed to | Command | Description | Arguments | Return Value | Allowed States | |---------|-------------|-----------|--------------|----------------| -| `reset_counters` | Resets all internal counters of the TLU | - | String | `INIT`, `ORBIT`, `RUN` | +| `reset_counters` | Resets all internal counters of the TLU | - | String | `ORBIT` | ## Data From aca03fada825fbda1036dce09db61fe7d0f31b9d Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Fri, 15 May 2026 09:09:43 +0200 Subject: [PATCH 2/2] fix (constellation): fix CSCP command signature --- aidatlu/constellation/aidatlu_satellite.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aidatlu/constellation/aidatlu_satellite.py b/aidatlu/constellation/aidatlu_satellite.py index df74f0f..7ce81c4 100644 --- a/aidatlu/constellation/aidatlu_satellite.py +++ b/aidatlu/constellation/aidatlu_satellite.py @@ -10,6 +10,7 @@ from constellation.core.configuration import Configuration, enum_type from constellation.core.protocol.cscp1 import SatelliteState +from constellation.core.message.cscp1 import CSCP1Message from constellation.core.monitoring import schedule_metric from constellation.core.transmitter_satellite import TransmitterSatellite from constellation.core.commandmanager import cscp_requestable @@ -267,7 +268,9 @@ def check_status(self, time: int) -> None: self.log.warning("FIFO is full") @cscp_requestable([SatelliteState.ORBIT]) - def reset_counters(self) -> tuple[str, Any, dict[str, Any]]: + def reset_counters( + self, request: CSCP1Message | None = None + ) -> tuple[str, Any, dict[str, Any]]: self.tlu_controller.reset_fifo() self.tlu_controller.reset_timestamp() self.tlu_controller.get_event_fifo_fill_level()