merged new tmtc
This commit is contained in:
@ -6,13 +6,13 @@
|
||||
@date 21.12.2020
|
||||
"""
|
||||
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from tmtc_core.core.tmtc_core_definitions import QueueCommands
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
from gomspace.gomspace_common import *
|
||||
from pus_tc.tmtcc_tc_p60dock import P60DockConfigTable
|
||||
from config.tmtcc_object_ids import ObjectIds
|
||||
from tmtc_core.core.tmtcc_object_id_manager import get_object_id
|
||||
from pus_tc.p60dock import P60DockConfigTable
|
||||
from config.object_ids import ObjIdIds
|
||||
from tmtccmd.core.object_id_manager import get_object_id
|
||||
|
||||
|
||||
class ACUTestProcedure:
|
||||
@ -57,7 +57,7 @@ def pack_acu_test_into(object_id: bytearray, tc_queue: TcQueueT) -> TcQueueT:
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing ACU"))
|
||||
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "P60 Dock: Enabling ACU connected to X1 slot (channel 0)"))
|
||||
p60dock_object_id = get_object_id(ObjectIds.P60DOCK_HANDLER_ID)
|
||||
p60dock_object_id = get_object_id(ObjIdIds.P60DOCK_HANDLER_ID)
|
||||
command = pack_set_param_command(p60dock_object_id, P60DockConfigTable.out_en_0.parameter_address,
|
||||
P60DockConfigTable.out_en_0.parameter_size, Channel.on)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=23, app_data=command)
|
@ -5,9 +5,9 @@
|
||||
@author J. Meier
|
||||
@date 30.01.2021
|
||||
"""
|
||||
from tmtc_core.core.tmtc_core_definitions import QueueCommands
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
|
||||
|
||||
class SwitchNumbers:
|
||||
@ -26,7 +26,7 @@ class ActionIds:
|
||||
SWITCH_HEATER = bytearray([0x0, 0x0, 0x0, 0x0])
|
||||
|
||||
|
||||
def pack_heater_test_into(object_id: bytearray, tc_queue: TcQueueT) -> TcQueueT:
|
||||
def pack_heater_test_into(object_id: bytearray, tc_queue: TcQueueT):
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing Heater Switching"))
|
||||
|
||||
heater_number = int(input("Type number of heater to switch: "))
|
@ -5,9 +5,9 @@
|
||||
@author J. Meier
|
||||
@date 13.12.2020
|
||||
"""
|
||||
from tmtc_core.core.tmtc_core_definitions import QueueCommands
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
from gomspace.gomspace_common import *
|
||||
|
||||
|
@ -5,11 +5,12 @@
|
||||
@author J. Meier
|
||||
@date 17.12.2020
|
||||
"""
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
from gomspace.gomspace_common import *
|
||||
from pus_tc.tmtcc_tc_p60dock import P60DockConfigTable
|
||||
from pus_tc.p60dock import P60DockConfigTable
|
||||
from gomspace.gomspace_pdu_definitions import *
|
||||
|
||||
|
||||
@ -25,24 +26,30 @@ class PDU1TestProcedure:
|
||||
read_temperature = False
|
||||
|
||||
|
||||
def pack_pdu1_test_into(pdu1_object_id: bytearray, p60dock_object_id: bytearray, tc_queue: TcQueueT) -> TcQueueT:
|
||||
tc_queue.appendleft(("print", "Testing PDU1"))
|
||||
def pack_pdu1_test_into(
|
||||
pdu1_object_id: bytearray, p60dock_object_id: bytearray, tc_queue: TcQueueT
|
||||
):
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing PDU1"))
|
||||
|
||||
tc_queue.appendleft(("print", "P60 Dock: Enabling PDU1"))
|
||||
command = pack_set_param_command(p60dock_object_id, P60DockConfigTable.out_en_1.parameter_address,
|
||||
P60DockConfigTable.out_en_1.parameter_size, Channel.on)
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "P60 Dock: Enabling PDU1"))
|
||||
command = pack_set_param_command(
|
||||
p60dock_object_id, P60DockConfigTable.out_en_1.parameter_address,
|
||||
P60DockConfigTable.out_en_1.parameter_size, Channel.on
|
||||
)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=23, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
|
||||
if PDU1TestProcedure.all or PDU1TestProcedure.ping:
|
||||
tc_queue.appendleft(("print", "PDU1: Ping Test"))
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Ping Test"))
|
||||
ping_data = bytearray([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
|
||||
command = pack_ping_command(pdu1_object_id, ping_data)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=22, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
if PDU1TestProcedure.all or PDU1TestProcedure.read_temperature:
|
||||
tc_queue.appendleft(("print", "PDU1: Testing temperature reading"))
|
||||
command = pack_get_param_command(pdu1_object_id, TableIds.hk, PDUHkTable.temperature.parameter_address,
|
||||
PDUHkTable.temperature.parameter_size)
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Testing temperature reading"))
|
||||
command = pack_get_param_command(
|
||||
pdu1_object_id, TableIds.hk, PDUHkTable.temperature.parameter_address,
|
||||
PDUHkTable.temperature.parameter_size
|
||||
)
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=24, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
@ -5,12 +5,12 @@
|
||||
@author J. Meier
|
||||
@date 17.12.2020
|
||||
"""
|
||||
from tmtc_core.core.tmtc_core_definitions import QueueCommands
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
from gomspace.gomspace_common import *
|
||||
from gomspace.gomspace_pdu_definitions import *
|
||||
from pus_tc.tmtcc_tc_p60dock import P60DockConfigTable
|
||||
from pus_tc.p60dock import P60DockConfigTable
|
||||
|
||||
|
||||
class PDU2TestProcedure:
|
||||
@ -27,7 +27,7 @@ class PDU2TestProcedure:
|
||||
channel_2_off = False # Reaction wheels 5V
|
||||
read_temperature = True
|
||||
read_channel_2_state = False # Reaction wheels 5V
|
||||
read_cur_lu_lim_0 = False # OBC
|
||||
read_cur_lu_lim_0 = False # OBC
|
||||
channel_2_on = False # Reaction wheels 5V
|
||||
invalid_table_id_test = False # Test to check if software properly handles invalid table ids
|
||||
invalid_address_test = False # Test to check if software properly handles invalid addresses
|
@ -5,49 +5,38 @@
|
||||
@author R. Mueller
|
||||
@date 02.05.2020
|
||||
"""
|
||||
from tmtc_core.core.tmtc_core_definitions import QueueCommands
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.core.tmtcc_object_id_manager import get_object_id
|
||||
from config.tmtcc_object_ids import ObjectIds
|
||||
import struct
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.service_200_mode import pack_mode_data
|
||||
from config.object_ids import TEST_DEVICE_ID
|
||||
|
||||
TEST_DEVICE_ID = get_object_id(ObjectIds.TEST_DEVICE)
|
||||
TEST_DEVICE_OBJ_ID = TEST_DEVICE_ID
|
||||
|
||||
|
||||
def pack_service200_test_into(tc_queue: TcQueueT) -> TcQueueT:
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing Service 200"))
|
||||
# Object ID: Dummy Device
|
||||
object_id = TEST_DEVICE_ID
|
||||
obj_id = TEST_DEVICE_OBJ_ID
|
||||
# Set On Mode
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing Service 200: Set Mode On"))
|
||||
mode_data = pack_mode_data(object_id, 1, 0)
|
||||
mode_data = pack_mode_data(obj_id, 1, 0)
|
||||
command = PusTelecommand(service=200, subservice=1, ssc=2000, app_data=mode_data)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
# Set Normal mode
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing Service 200: Set Mode Normal"))
|
||||
mode_data = pack_mode_data(object_id, 2, 0)
|
||||
mode_data = pack_mode_data(obj_id, 2, 0)
|
||||
command = PusTelecommand(service=200, subservice=1, ssc=2010, app_data=mode_data)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
# Set Raw Mode
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing Service 200: Set Mode Raw"))
|
||||
mode_data = pack_mode_data(object_id, 3, 0)
|
||||
mode_data = pack_mode_data(obj_id, 3, 0)
|
||||
command = PusTelecommand(service=200, subservice=1, ssc=2020, app_data=mode_data)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
# Set Off Mode
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing Service 200: Set Mode Off"))
|
||||
mode_data = pack_mode_data(object_id, 0, 0)
|
||||
mode_data = pack_mode_data(obj_id, 0, 0)
|
||||
command = PusTelecommand(service=200, subservice=1, ssc=2030, app_data=mode_data)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
tc_queue.appendleft((QueueCommands.EXPORT_LOG, "log/tmtc_log_service200.txt"))
|
||||
return tc_queue
|
||||
|
||||
|
||||
# Mode 0: Off, Mode 1: Mode On, Mode 2: Mode Normal, Mode 3: Mode Raw
|
||||
def pack_mode_data(object_id: bytearray, mode_: int, submode_: int) -> bytearray:
|
||||
# Normal mode
|
||||
mode = struct.pack(">I", mode_)
|
||||
# Submode default
|
||||
submode = struct.pack('B', submode_)
|
||||
mode_data = object_id + mode + submode
|
||||
return mode_data
|
68
pus_tc/tc_packer_hook.py
Normal file
68
pus_tc/tc_packer_hook.py
Normal file
@ -0,0 +1,68 @@
|
||||
"""
|
||||
@brief This file transfers control of TC packing to the user
|
||||
@details Template configuration file. Copy this folder to the TMTC commander root and adapt
|
||||
it to your needs.
|
||||
"""
|
||||
|
||||
import os
|
||||
from collections import deque
|
||||
from typing import Union
|
||||
|
||||
from tmtccmd.core.definitions import CoreServiceList
|
||||
from tmtccmd.utility.tmtcc_logger import get_logger
|
||||
from tmtccmd.pus_tc.base import TcQueueT
|
||||
from tmtccmd.pus_tc.service_5_event import pack_generic_service5_test_into
|
||||
from tmtccmd.pus_tc.service_17_test import pack_service17_ping_command
|
||||
from tmtccmd.core.object_id_manager import get_object_id
|
||||
|
||||
from pus_tc.p60dock import pack_p60dock_test_into
|
||||
from pus_tc.pdu2 import pack_pdu2_test_into
|
||||
from pus_tc.pdu1 import pack_pdu1_test_into
|
||||
from pus_tc.acu import pack_acu_test_into
|
||||
from pus_tc.tmp1075 import pack_tmp1075_test_into
|
||||
from pus_tc.heater import pack_heater_test_into
|
||||
from config.definitions import CustomServiceList
|
||||
from config.object_ids import ObjIdIds
|
||||
|
||||
|
||||
LOGGER = get_logger()
|
||||
|
||||
|
||||
def pack_service_queue_user(service: Union[str, int], op_code: str, service_queue: TcQueueT):
|
||||
if service == CoreServiceList.SERVICE_5:
|
||||
return pack_generic_service5_test_into(service_queue)
|
||||
if service == CoreServiceList.SERVICE_17:
|
||||
return service_queue.appendleft(pack_service17_ping_command(ssc=1700).pack_command_tuple())
|
||||
if service == CustomServiceList.P60DOCK.value:
|
||||
object_id = get_object_id(ObjIdIds.P60DOCK_HANDLER_ID)
|
||||
return pack_p60dock_test_into(object_id, service_queue)
|
||||
if service == CustomServiceList.PDU1.value:
|
||||
pdu1_object_id = get_object_id(ObjIdIds.PDU1_HANDLER_ID)
|
||||
p60dock_object_id = get_object_id(ObjIdIds.P60DOCK_HANDLER_ID)
|
||||
return pack_pdu1_test_into(pdu1_object_id, p60dock_object_id, service_queue)
|
||||
if service == CustomServiceList.PDU2.value:
|
||||
pdu2_object_id = get_object_id(ObjIdIds.PDU2_HANDLER_ID)
|
||||
p60dock_object_id = get_object_id(ObjIdIds.P60DOCK_HANDLER_ID)
|
||||
return pack_pdu2_test_into(pdu2_object_id, p60dock_object_id, service_queue)
|
||||
if service == CustomServiceList.ACU.value:
|
||||
object_id = get_object_id(ObjIdIds.ACU_HANDLER_ID)
|
||||
return pack_acu_test_into(object_id, service_queue)
|
||||
if service == CustomServiceList.TMP1075_1.value:
|
||||
object_id = get_object_id(ObjIdIds.TMP1075_1_HANDLER_ID)
|
||||
return pack_tmp1075_test_into(object_id, service_queue)
|
||||
if service == CustomServiceList.TMP1075_2.value:
|
||||
object_id = get_object_id(ObjIdIds.TMP1075_2_HANDLER_ID)
|
||||
return pack_tmp1075_test_into(object_id, service_queue)
|
||||
if service == CustomServiceList.HEATER.value:
|
||||
object_id = get_object_id(ObjIdIds.HEATER)
|
||||
return pack_heater_test_into(object_id, service_queue)
|
||||
LOGGER.warning("Invalid Service !")
|
||||
|
||||
|
||||
def create_total_tc_queue_user() -> TcQueueT:
|
||||
if not os.path.exists("log"):
|
||||
os.mkdir("log")
|
||||
tc_queue = deque()
|
||||
pack_generic_service5_test_into(tc_queue)
|
||||
tc_queue.appendleft(pack_service17_ping_command(ssc=1700).pack_command_tuple())
|
||||
return tc_queue
|
@ -5,10 +5,11 @@
|
||||
@author J. Meier
|
||||
@date 06.01.2021
|
||||
"""
|
||||
from tmtccmd.core.definitions import QueueCommands
|
||||
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_packer import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import PusTelecommand
|
||||
from pus_tc.tmtcc_tc_service200_mode import pack_mode_data
|
||||
from tmtccmd.pus_tc.packer import TcQueueT
|
||||
from tmtccmd.pus_tc.base import PusTelecommand
|
||||
from pus_tc.service_200_mode import pack_mode_data
|
||||
|
||||
|
||||
class Tmp1075TestProcedure:
|
||||
@ -30,29 +31,31 @@ class Tmp1075ActionIds:
|
||||
|
||||
|
||||
def pack_tmp1075_test_into(object_id: bytearray, tc_queue: TcQueueT) -> TcQueueT:
|
||||
tc_queue.appendleft(("print", "Testing Tmp1075 Temperature Sensor Handler with object id: 0x" +
|
||||
object_id.hex()))
|
||||
tc_queue.appendleft(
|
||||
(QueueCommands.PRINT,
|
||||
"Testing Tmp1075 Temperature Sensor Handler with object id: 0x" + object_id.hex())
|
||||
)
|
||||
|
||||
if Tmp1075TestProcedure.all or Tmp1075TestProcedure.start_adc_conversion:
|
||||
tc_queue.appendleft(("print", "TMP1075: Starting new temperature conversion"))
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "TMP1075: Starting new temperature conversion"))
|
||||
command = object_id + Tmp1075ActionIds.start_adc_conversion
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=23, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
|
||||
if Tmp1075TestProcedure.all or Tmp1075TestProcedure.get_temp:
|
||||
tc_queue.appendleft(("print", "TMP1075: Read temperature"))
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "TMP1075: Read temperature"))
|
||||
command = object_id + Tmp1075ActionIds.get_temp
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=24, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
|
||||
if Tmp1075TestProcedure.set_mode_normal:
|
||||
tc_queue.appendleft(("print", "TMP1075: Set Mode Normal"))
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "TMP1075: Set Mode Normal"))
|
||||
mode_data = pack_mode_data(object_id, 2, 0)
|
||||
command = PusTelecommand(service=200, subservice=1, ssc=220, app_data=mode_data)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
||||
|
||||
if Tmp1075TestProcedure.set_mode_on:
|
||||
tc_queue.appendleft(("print", "TMP1075: Set Mode On"))
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "TMP1075: Set Mode On"))
|
||||
mode_data = pack_mode_data(object_id, 1, 0)
|
||||
command = PusTelecommand(service=200, subservice=1, ssc=221, app_data=mode_data)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
@ -1,72 +0,0 @@
|
||||
"""
|
||||
@brief This file transfers control of TC packing to the user
|
||||
@details Template configuration file. Copy this folder to the TMTC commander root and adapt
|
||||
it to your needs.
|
||||
"""
|
||||
|
||||
import os
|
||||
from collections import deque
|
||||
|
||||
from config.tmtcc_definitions import ServiceList
|
||||
from tmtc_core.utility.tmtcc_logger import get_logger
|
||||
from tmtc_core.pus_tc.tmtcc_pus_tc_base import TcQueueT
|
||||
from tmtc_core.pus_tc.tmtcc_tc_service_5_event import pack_generic_service5_test_into
|
||||
from tmtc_core.pus_tc.tmtcc_tc_service_17_test import pack_service17_ping_command
|
||||
from pus_tc.tmtcc_tc_p60dock import pack_p60dock_test_into
|
||||
from pus_tc.tmtcc_tc_pdu2 import pack_pdu2_test_into
|
||||
from pus_tc.tmtcc_tc_pdu1 import pack_pdu1_test_into
|
||||
from pus_tc.tmtcc_tc_acu import pack_acu_test_into
|
||||
from tmtc_core.core.tmtcc_object_id_manager import get_object_id
|
||||
from config.tmtcc_object_ids import ObjectIds
|
||||
from pus_tc.tmtcc_tc_tmp1075 import pack_tmp1075_test_into
|
||||
from pus_tc.tmtcc_tc_heater import pack_heater_test_into
|
||||
from pus_tc.tmtcc_tc_solar_array_deployment import pack_solar_array_deployment_test_into
|
||||
from pus_tc.tmtcc_tc_syrlinks_hk_handler import pack_syrlinks_hk_handler_test_into
|
||||
|
||||
LOGGER = get_logger()
|
||||
|
||||
|
||||
def pack_service_queue_user(service: ServiceList, op_code: str, service_queue: TcQueueT):
|
||||
if service == ServiceList.SERVICE_5:
|
||||
return pack_generic_service5_test_into(service_queue)
|
||||
if service == ServiceList.SERVICE_17:
|
||||
return service_queue.appendleft(pack_service17_ping_command(ssc=1700).pack_command_tuple())
|
||||
if service == ServiceList.P60DOCK:
|
||||
object_id = get_object_id(ObjectIds.P60DOCK_HANDLER_ID)
|
||||
return pack_p60dock_test_into(object_id, service_queue)
|
||||
if service == ServiceList.PDU1:
|
||||
pdu1_object_id = get_object_id(ObjectIds.PDU1_HANDLER_ID)
|
||||
p60dock_object_id = get_object_id(ObjectIds.P60DOCK_HANDLER_ID)
|
||||
return pack_pdu1_test_into(pdu1_object_id, p60dock_object_id, service_queue)
|
||||
if service == ServiceList.PDU2:
|
||||
pdu2_object_id = get_object_id(ObjectIds.PDU2_HANDLER_ID)
|
||||
p60dock_object_id = get_object_id(ObjectIds.P60DOCK_HANDLER_ID)
|
||||
return pack_pdu2_test_into(pdu2_object_id, p60dock_object_id, service_queue)
|
||||
if service == ServiceList.ACU:
|
||||
object_id = get_object_id(ObjectIds.ACU_HANDLER_ID)
|
||||
return pack_acu_test_into(object_id, service_queue)
|
||||
if service == ServiceList.TMP1075_1:
|
||||
object_id = get_object_id(ObjectIds.TMP1075_1_HANDLER_ID)
|
||||
return pack_tmp1075_test_into(object_id, service_queue)
|
||||
if service == ServiceList.TMP1075_2:
|
||||
object_id = get_object_id(ObjectIds.TMP1075_2_HANDLER_ID)
|
||||
return pack_tmp1075_test_into(object_id, service_queue)
|
||||
if service == ServiceList.HEATER:
|
||||
object_id = get_object_id(ObjectIds.HEATER)
|
||||
return pack_heater_test_into(object_id, service_queue)
|
||||
if service == ServiceList.SA_DEPL:
|
||||
object_id = get_object_id(ObjectIds.SOLAR_ARRAY_DEPLOYMENT)
|
||||
return pack_solar_array_deployment_test_into(object_id, service_queue)
|
||||
if service == ServiceList.SYRLINKS:
|
||||
object_id = get_object_id(ObjectIds.SYRLINKS_HK_HANDLER)
|
||||
return pack_syrlinks_hk_handler_test_into(object_id, service_queue)
|
||||
LOGGER.warning("Invalid Service !")
|
||||
|
||||
|
||||
def create_total_tc_queue_user() -> TcQueueT:
|
||||
if not os.path.exists("log"):
|
||||
os.mkdir("log")
|
||||
tc_queue = deque()
|
||||
pack_generic_service5_test_into(tc_queue)
|
||||
tc_queue.appendleft(pack_service17_ping_command(ssc=1700).pack_command_tuple())
|
||||
return tc_queue
|
Reference in New Issue
Block a user