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 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()