eive-tmtc/eive_tmtc/config/definitions.py

86 lines
2.1 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
2022-12-01 11:14:28 +01:00
2021-03-19 17:39:52 +01:00
2023-11-13 11:37:57 +01:00
TM_DB_PATH = "tm.db"
2023-11-13 13:19:42 +01:00
# Separate DB or not? Not sure..
# RAW_TM_PATH = "raw_tm.db"
2023-11-13 11:37:57 +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 = (
2023-01-31 12:56:13 +01:00
PUS_PACKET_ID,
CFDP_PACKET_ID,
2022-10-21 15:24:57 +02:00
)
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"
2023-02-01 20:11:47 +01:00
HEALTH = "health"
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"
2023-02-21 14:29:40 +01:00
GYRO = "gyro"
2023-02-28 01:24:47 +01:00
MGMS = "mgms"
2023-01-27 15:42:00 +01:00
COM_SS = "com"
BPX_BATTERY = "bpx"
2021-03-19 17:39:52 +01:00
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"
2023-02-05 12:52:43 +01:00
GPS_CTRL = "gps"
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"
TCS_SS = "tcs_subsystem"
TCS_CTRL = "tcs_ctrl"
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"
2023-06-18 13:30:45 +02:00
TMP1075 = "tmp1075"
2022-05-18 20:00:59 +02:00
TVTTESTPROCEDURE = "tvtestproc"
2022-06-21 15:21:55 +02:00
SCEX = "scex"
2023-02-07 15:21:48 +01:00
TM_STORE = "tm_store"
2023-02-12 18:56:59 +01:00
SYSTEM = "system"
2023-10-09 11:10:20 +02:00
PWR_CTRL = "pwr_ctrl"
EPS_SS = "eps_subsystem"
2023-10-11 11:35:57 +02:00
XIPHOS_WDT = "xiphos_wdt"