CSCP1 module#

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

Provides message class for CSCP1

class core.message.cscp1.CSCP1Message(sender: str, verb: tuple[Type, str], time: datetime | None = None, tags: dict[str, Any] | None = None)#

Bases: object

Message class for CSCP1

class Type(*values)#

Bases: IntEnum

Enum describing the type of CSCP1 message

ERROR = 6#

Previously received message is invalid

INCOMPLETE = 3#

Command is valid but mandatory payload information is missing or incorrectly formatted

INVALID = 4#

Command is invalid for the current state

NOTIMPLEMENTED = 2#

Command is valid but not implemented

REQUEST = 0#

Request with a command

SUCCESS = 1#

Command is being executed

UNKNOWN = 5#

Command is entirely unknown

assemble() MultipartMessage#
static disassemble(frames: list[bytes]) CSCP1Message#
property payload: Any#
property sender: str#
property tags: dict[str, Any]#
property time: datetime#
property verb: tuple[Type, str]#
property verb_msg: str#
property verb_type: Type#
class core.message.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#