CSCP1 Module#

SPDX-FileCopyrightText: 2026 DESY and the Constellation authors SPDX-License-Identifier: EUPL-1.2

Module containing definitions for CSCP.

class core.protocol.cscp1.SatelliteState(*values)#

Bases: Enum

Available states to cycle through.

DEAD = 255#
ERROR = 240#
INIT = 32#
NEW = 16#
ORBIT = 48#
RUN = 64#
SAFE = 224#
initializing = 18#
interrupting = 14#
landing = 50#
launching = 35#
reconfiguring = 51#
starting = 52#
stopping = 67#
transitions_to(state: Enum) bool#
core.protocol.cscp1.is_valid_canonical_name(canonical_name: str) bool#

Checks if a canonical name is valid

A canonical name consists of two parts, separated by a period. Both parts may contain alphanumeric characters and underscores and may not be empty.

core.protocol.cscp1.is_valid_satellite_name(satellite_name: str) bool#

Checks if a satellite name is valid

A satellite name may contain alphanumeric characters and underscores and may not be empty.

core.protocol.cscp1.is_valid_satellite_type(satellite_type: str) bool#

Checks if a satellite type is valid

A satellite type may contain alphanumeric characters and underscores and may not be empty.

core.protocol.cscp1.states_except(disallowed_states: list[SatelliteState]) list[SatelliteState]#

Get list of all states except states from a given list