24 lines
667 B
Python
24 lines
667 B
Python
"""
|
|
@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.
|
|
"""
|
|
|
|
import enum
|
|
from typing import Dict
|
|
|
|
|
|
class ObjectIds(enum.IntEnum):
|
|
PUS_SERVICE_17 = 1
|
|
TEST_DEVICE_0 = 2
|
|
TEST_DEVICE_1 = 3
|
|
|
|
|
|
def set_object_ids() -> Dict[int, bytearray]:
|
|
object_id_dict = {
|
|
ObjectIds.PUS_SERVICE_17: bytearray([0x53, 0x00, 0x00, 0x17]),
|
|
ObjectIds.TEST_DEVICE_0: bytearray([0x44, 0x01, 0xAF, 0xFE]),
|
|
ObjectIds.TEST_DEVICE_1: bytearray([0x44, 0x02, 0xAF, 0xFE]),
|
|
}
|
|
return object_id_dict
|