opengnc.ops.ground_segment package

Submodules

opengnc.ops.ground_segment.ccsds module

CCSDS Space Packet Protocol (Blue Book 133.0-B-2) and time code formats.

class opengnc.ops.ground_segment.ccsds.CUC[source]

Bases: object

SIZE = 6
static pack(t: float | None = None) bytes[source]
static unpack(data: bytes) float[source]
class opengnc.ops.ground_segment.ccsds.PacketType(value)[source]

Bases: IntEnum

TELECOMMAND = 1
TELEMETRY = 0
class opengnc.ops.ground_segment.ccsds.SequenceFlags(value)[source]

Bases: IntEnum

CONTINUATION = 0
FIRST = 1
LAST = 2
UNSEGMENTED = 3
class opengnc.ops.ground_segment.ccsds.SpacePacket(apid: int, packet_type: PacketType = PacketType.TELEMETRY, sec_header_flag: bool = False, seq_flags: SequenceFlags = SequenceFlags.UNSEGMENTED, seq_count: int = 0, data: bytes = b'')[source]

Bases: object

HEADER_SIZE = 6
property data_length_field: int
pack() bytes[source]
classmethod unpack(buffer: bytes) SpacePacket[source]

opengnc.ops.ground_segment.decom module

Telemetry de-commutation engine.

class opengnc.ops.ground_segment.decom.DecomEngine(fields: list[TelemetryField])[source]

Bases: object

TYPE_SIZES = {'B': 1, 'H': 2, 'I': 4, 'Q': 8, 'b': 1, 'd': 8, 'f': 4, 'h': 2, 'i': 4, 'q': 8}
decommutate(payload: bytes) dict[str, Any][source]
classmethod from_dict(config: list[dict[str, Any]]) DecomEngine[source]
class opengnc.ops.ground_segment.decom.TelemetryField(name: 'str', data_type: 'str', offset: 'int', scale: 'float' = 1.0, offset_val: 'float' = 0.0)[source]

Bases: object

data_type: str
name: str
offset: int
offset_val: float = 0.0
scale: float = 1.0

Module contents

Ground segment operations helpers.

class opengnc.ops.ground_segment.CUC[source]

Bases: object

SIZE = 6
static pack(t: float | None = None) bytes[source]
static unpack(data: bytes) float[source]
class opengnc.ops.ground_segment.DecomEngine(fields: list[TelemetryField])[source]

Bases: object

TYPE_SIZES = {'B': 1, 'H': 2, 'I': 4, 'Q': 8, 'b': 1, 'd': 8, 'f': 4, 'h': 2, 'i': 4, 'q': 8}
decommutate(payload: bytes) dict[str, Any][source]
classmethod from_dict(config: list[dict[str, Any]]) DecomEngine[source]
class opengnc.ops.ground_segment.PacketType(value)[source]

Bases: IntEnum

TELECOMMAND = 1
TELEMETRY = 0
class opengnc.ops.ground_segment.SequenceFlags(value)[source]

Bases: IntEnum

CONTINUATION = 0
FIRST = 1
LAST = 2
UNSEGMENTED = 3
class opengnc.ops.ground_segment.SpacePacket(apid: int, packet_type: PacketType = PacketType.TELEMETRY, sec_header_flag: bool = False, seq_flags: SequenceFlags = SequenceFlags.UNSEGMENTED, seq_count: int = 0, data: bytes = b'')[source]

Bases: object

HEADER_SIZE = 6
property data_length_field: int
pack() bytes[source]
classmethod unpack(buffer: bytes) SpacePacket[source]
class opengnc.ops.ground_segment.TelemetryField(name: 'str', data_type: 'str', offset: 'int', scale: 'float' = 1.0, offset_val: 'float' = 0.0)[source]

Bases: object

data_type: str
name: str
offset: int
offset_val: float = 0.0
scale: float = 1.0