Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aidatlu/constellation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 4 additions & 1 deletion aidatlu/constellation/aidatlu_satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Loading