2021-03-19 17:39:52 +01:00
|
|
|
"""
|
|
|
|
@brief This file transfers control of the object IDs to the user.
|
|
|
|
@details Template configuration file. Copy this folder to the TMTC commander root and adapt
|
|
|
|
it to your needs.
|
|
|
|
"""
|
|
|
|
from typing import Dict
|
|
|
|
|
2021-09-13 18:06:25 +02:00
|
|
|
# Core Object IDs
|
|
|
|
CORE_CONTROLLER_ID = bytes([0x43, 0x00, 0x00, 0x03])
|
|
|
|
SOLAR_ARRAY_DEPLOYMENT_ID = bytes([0x44, 0x41, 0x10, 0xA2])
|
|
|
|
|
|
|
|
# Power Object IDs
|
|
|
|
PCDU_HANDLER_ID = bytes([0x44, 0x20, 0x00, 0xA1])
|
2021-06-24 16:42:58 +02:00
|
|
|
P60_DOCK_HANDLER = bytes([0x44, 0x25, 0x00, 0x00])
|
|
|
|
PDU_1_HANDLER_ID = bytes([0x44, 0x25, 0x00, 0x01])
|
|
|
|
PDU_2_HANDLER_ID = bytes([0x44, 0x25, 0x00, 0x02])
|
|
|
|
ACU_HANDLER_ID = bytes([0x44, 0x25, 0x00, 0x03])
|
2021-09-13 18:06:25 +02:00
|
|
|
|
|
|
|
# Thermal Object IDs
|
|
|
|
HEATER_ID = bytes([0x44, 0x41, 0x00, 0xA4])
|
2021-06-24 16:42:58 +02:00
|
|
|
TMP_1075_1_HANDLER_ID = bytes([0x44, 0x42, 0x00, 0x04])
|
|
|
|
TMP_1075_2_HANDLER_ID = bytes([0x44, 0x42, 0x00, 0x05])
|
2021-09-13 18:06:25 +02:00
|
|
|
|
|
|
|
# Communication Object IDs
|
2021-06-24 16:49:19 +02:00
|
|
|
SYRLINKS_HANDLER = bytes([0x44, 0x53, 0x00, 0xA3])
|
2021-09-13 18:06:25 +02:00
|
|
|
|
|
|
|
# ACS Object IDs
|
|
|
|
MGM_0_HANDLER_ID = bytes([0x44, 0x12, 0x00, 0x06])
|
|
|
|
MGM_1_HANDLER_ID = bytes([0x44, 0x12, 0x01, 0x07])
|
|
|
|
MGM_2_HANDLER_ID = bytes([0x44, 0x12, 0x02, 0x08])
|
|
|
|
MGM_3_HANDLER_ID = bytes([0x44, 0x12, 0x03, 0x09])
|
|
|
|
GYRO_0_HANDLER_ID = bytes([0x44, 0x12, 0x00, 0x10])
|
|
|
|
GYRO_1_HANDLER_ID = bytes([0x44, 0x12, 0x01, 0x11])
|
|
|
|
GYRO_2_HANDLER_ID = bytes([0x44, 0x12, 0x02, 0x12])
|
|
|
|
GYRO_3_HANDLER_ID = bytes([0x44, 0x12, 0x03, 0x13])
|
2021-08-11 19:16:08 +02:00
|
|
|
GPS_HANDLER_0_ID = bytes([0x44, 0x13, 0x00, 0x45])
|
|
|
|
GPS_HANDLER_1_ID = bytes([0x44, 0x13, 0x01, 0x46])
|
2021-08-17 19:48:55 +02:00
|
|
|
RW1_ID = bytes([0x44, 0x12, 0x00, 0x47])
|
|
|
|
RW2_ID = bytes([0x44, 0x12, 0x01, 0x48])
|
|
|
|
RW3_ID = bytes([0x44, 0x12, 0x02, 0x49])
|
|
|
|
RW4_ID = bytes([0x44, 0x12, 0x03, 0x50])
|
2021-09-13 18:06:25 +02:00
|
|
|
IMTQ_HANDLER_ID = bytes([0x44, 0x14, 0x00, 0x14])
|
|
|
|
|
|
|
|
# Misc Object IDs
|
|
|
|
PUS_SERVICE_17_ID = bytes([0x53, 0x00, 0x00, 0x17])
|
|
|
|
TEST_DEVICE_ID = bytes([0x54, 0x00, 0xAF, 0xFE])
|
2021-11-24 15:56:25 +01:00
|
|
|
CCSDS_HANDLER_ID = bytes([0x50, 0x00, 0x08, 0x00])
|
|
|
|
PDEC_HANDLER_ID = bytes([0x50, 0x00, 0x07, 0x04])
|
2021-09-13 18:06:25 +02:00
|
|
|
|
|
|
|
# Payload Object IDs
|
2021-08-16 10:03:40 +02:00
|
|
|
STAR_TRACKER_ID = bytes([0x44, 0x13, 0x00, 0x1])
|
2021-07-01 11:52:25 +02:00
|
|
|
RAD_SENSOR_ID = bytes([0x44, 0x32, 0x00, 0xA5])
|
2021-07-11 14:29:11 +02:00
|
|
|
PLOC_SUPV_ID = bytes([0x44, 0x33, 0x00, 0x16])
|
2021-08-07 14:34:26 +02:00
|
|
|
PLOC_UPDATER_ID = bytes([0x44, 0x33, 0x00, 0x00])
|
2021-08-31 11:17:01 +02:00
|
|
|
PLOC_MEMORY_DUMPER_ID = bytes([0x44, 0x33, 0x00, 0x01])
|
2021-09-13 18:06:25 +02:00
|
|
|
PLOC_MPSOC_ID = bytes([0x44, 0x33, 0x00, 0x15])
|
2021-07-01 11:52:25 +02:00
|
|
|
|
2021-03-19 17:39:52 +01:00
|
|
|
|
2021-05-17 17:42:04 +02:00
|
|
|
def get_object_ids() -> Dict[bytes, list]:
|
2021-03-19 17:39:52 +01:00
|
|
|
object_id_dict = ({
|
2021-05-17 17:42:04 +02:00
|
|
|
PUS_SERVICE_17_ID: "PUS Service 17",
|
|
|
|
TEST_DEVICE_ID: "Test Device",
|
|
|
|
P60_DOCK_HANDLER: "P60",
|
|
|
|
PDU_1_HANDLER_ID: "PCDU PDU1 Handler",
|
|
|
|
PDU_2_HANDLER_ID: "PCDU PDU2 Handler",
|
|
|
|
ACU_HANDLER_ID: "ACU Handler",
|
|
|
|
TMP_1075_1_HANDLER_ID: "TMP 1075 Handler 1",
|
|
|
|
TMP_1075_2_HANDLER_ID: "TMP 1075 Handler 2",
|
|
|
|
HEATER_ID: "Heater",
|
|
|
|
PCDU_HANDLER_ID: "PCDU",
|
|
|
|
SOLAR_ARRAY_DEPLOYMENT_ID: "Solar Array Deployment",
|
2021-06-25 15:25:22 +02:00
|
|
|
RW1_ID: "Reaction Wheel 1",
|
|
|
|
RW2_ID: "Reaction Wheel 2",
|
|
|
|
RW3_ID: "Reaction Wheel 3",
|
|
|
|
RW4_ID: "Reaction Wheel 4",
|
2021-09-08 14:47:33 +02:00
|
|
|
GPS_HANDLER_0_ID: "GPS 0",
|
|
|
|
GPS_HANDLER_1_ID: "GPS 1",
|
2021-07-01 11:52:25 +02:00
|
|
|
RAD_SENSOR_ID: "Radiation Sensor",
|
2021-07-11 14:29:11 +02:00
|
|
|
PLOC_SUPV_ID: "PLOC Supervisor",
|
2021-08-03 15:28:28 +02:00
|
|
|
CORE_CONTROLLER_ID: "Core Controller",
|
2021-11-24 15:56:25 +01:00
|
|
|
CORE_CONTROLLER_ID: "CCSDS Handler",
|
2021-03-19 17:39:52 +01:00
|
|
|
})
|
|
|
|
return object_id_dict
|