eive-tmtc/config/definitions.py

73 lines
1.9 KiB
Python
Raw Normal View History

2021-03-19 17:39:52 +01:00
"""
@brief This file transfers control of the custom definitions like modes to the user.
@details Template configuration file. Copy this folder to the TMTC commander root and adapt
it to your needs.
"""
import enum
2022-10-21 15:24:57 +02:00
from spacepackets import PacketType
from spacepackets.ccsds import PacketId
2022-09-16 17:28:19 +02:00
from spacepackets.util import UnsignedByteField
2021-03-19 17:39:52 +01:00
2021-06-21 17:30:37 +02:00
PUS_APID = 0x65
2022-09-16 17:28:19 +02:00
CFDP_APID = 0x66
2022-10-21 15:24:57 +02:00
PUS_PACKET_ID = PacketId(PacketType.TM, True, PUS_APID)
CFDP_PACKET_ID = PacketId(PacketType.TM, False, CFDP_APID)
SPACE_PACKET_IDS = (
PUS_PACKET_ID.raw(),
CFDP_PACKET_ID.raw(),
)
2022-09-16 17:28:19 +02:00
CFDP_LOCAL_ENTITY_ID = UnsignedByteField(byte_len=2, val=1)
CFDP_REMOTE_ENTITY_ID = UnsignedByteField(byte_len=2, val=CFDP_APID)
2021-06-21 17:30:37 +02:00
2022-08-18 11:09:35 +02:00
class CustomServiceList(str, enum.Enum):
value: str
2022-01-18 14:03:56 +01:00
TEST_DEVICE = "test"
2021-03-19 17:39:52 +01:00
P60DOCK = "p60dock"
PDU1 = "pdu1"
PDU2 = "pdu2"
2022-08-11 18:10:15 +02:00
POWER = "power"
2021-03-19 17:39:52 +01:00
ACU = "acu"
2021-09-13 18:06:25 +02:00
ACS = "acs"
BPX_BATTERY = "bpx"
2021-03-19 17:39:52 +01:00
TMP1075_1 = "tmp1075_1"
TMP1075_2 = "tmp1075_2"
HEATER = "heater"
2021-03-26 13:56:02 +01:00
IMTQ = "imtq"
2022-03-17 19:42:27 +01:00
PLOC_SUPV = "ploc_supv"
PLOC_MPSOC = "ploc_mpsoc"
2022-01-18 14:03:56 +01:00
PCDU = "pcdu"
2022-02-25 19:25:14 +01:00
PL_PCDU = "plpcdu"
2021-05-17 17:59:24 +02:00
SA_DEPLYOMENT = "sa_depl"
2022-09-30 14:14:32 +02:00
REACTION_WHEEL_1 = "rw_1"
REACTION_WHEEL_2 = "rw_2"
REACTION_WHEEL_3 = "rw_3"
REACTION_WHEEL_4 = "rw_4"
RW_ASSEMBLY = "rw_ass"
RAD_SENSOR = "rad_sensor"
2022-05-24 01:34:33 +02:00
GPS_CTRL = "gnss-ctrl"
2021-08-31 11:17:01 +02:00
PLOC_MEMORY_DUMPER = "ploc_memory_dumper"
2022-01-18 14:03:56 +01:00
CORE = "core"
STAR_TRACKER = "star_tracker"
CCSDS_HANDLER = "ccsds_handler"
PDEC_HANDLER = "pdec_handler"
STR_IMG_HELPER = "str_img_helper"
SYRLINKS = "syrlinks"
2022-09-30 14:14:32 +02:00
ACS_CTRL = "acs_ctrl"
2022-10-04 14:46:00 +02:00
ACS_SS = "acs_subsystem"
2022-11-03 22:16:10 +01:00
PL_SS = "pl_subsystem"
2022-10-04 14:12:33 +02:00
ACS_BRD_ASS = "acs_brd_ass"
SUS_BRD_ASS = "sus_brd_ass"
2022-08-12 08:45:51 +02:00
TCS = "tcs"
2022-09-30 14:14:32 +02:00
TCS_ASS = "tcs_ass"
2022-04-09 18:44:04 +02:00
TIME = "time"
2022-05-18 18:39:18 +02:00
PROCEDURE = "proc"
2022-05-23 17:50:08 +02:00
RTD = "rtd"
2022-05-18 20:00:59 +02:00
TVTTESTPROCEDURE = "tvtestproc"
CONTROLLERS = "controllers"
2022-06-21 15:21:55 +02:00
SCEX = "scex"