deployment test
This commit is contained in:
@ -20,6 +20,7 @@ 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
|
||||
|
||||
LOGGER = get_logger()
|
||||
|
||||
@ -52,6 +53,9 @@ def pack_service_queue_user(service: ServiceList, op_code: str, service_queue: T
|
||||
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_HANDLER)
|
||||
return pack_solar_array_deployment_test_into(object_id, service_queue)
|
||||
LOGGER.warning("Invalid Service !")
|
||||
|
||||
|
||||
|
22
pus_tc/tmtcc_tc_solar_array_deployment.py
Normal file
22
pus_tc/tmtcc_tc_solar_array_deployment.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
@file tmtcc_tc_solar_array_deployment.py
|
||||
@brief The test function in this file simply returns a command which triggers the solar array deployment.
|
||||
@author J. Meier
|
||||
@date 15.02.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
|
||||
|
||||
|
||||
class ActionIds:
|
||||
DEPLOY_SOLAR_ARRAYS = bytearray([0x0, 0x0, 0x0, 0x5])
|
||||
|
||||
|
||||
def pack_solar_array_deployment_test_into(object_id: bytearray, tc_queue: TcQueueT) -> TcQueueT:
|
||||
tc_queue.appendleft((QueueCommands.PRINT, "Testing S/A Deployment"))
|
||||
|
||||
command = object_id + ActionIds.DEPLOY_SOLAR_ARRAYS
|
||||
command = PusTelecommand(service=8, subservice=128, ssc=200, app_data=command)
|
||||
tc_queue.appendleft(command.pack_command_tuple())
|
Reference in New Issue
Block a user