eive-tmtc/pus_tc/devs/solar_array_deployment.py

23 lines
782 B
Python
Raw Normal View History

2021-02-16 15:33:26 +01:00
# -*- coding: utf-8 -*-
"""
2021-05-17 18:08:43 +02:00
@file solar_array_deployment.py
2021-02-16 15:33:26 +01:00
@brief The test function in this file simply returns a command which triggers the solar array deployment.
@author J. Meier
@date 15.02.2021
"""
2021-05-17 18:08:43 +02:00
from tmtccmd.config.definitions import QueueCommands
from tmtccmd.tc.definitions import TcQueueT
from tmtccmd.tc.packer import PusTelecommand
2021-02-16 15:33:26 +01:00
class ActionIds:
DEPLOY_SOLAR_ARRAYS = bytearray([0x0, 0x0, 0x0, 0x5])
2021-05-17 18:08:43 +02:00
def pack_solar_array_deployment_test_into(object_id: bytearray, tc_queue: TcQueueT):
2021-02-16 15:33:26 +01:00
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())