# -*- 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())