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
|
|
|
|
"""
|
2022-07-04 17:59:09 +02:00
|
|
|
from spacepackets.ecss import PusTelecommand
|
|
|
|
from tmtccmd.tc import QueueHelper
|
2021-02-16 15:33:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ActionIds:
|
|
|
|
DEPLOY_SOLAR_ARRAYS = bytearray([0x0, 0x0, 0x0, 0x5])
|
|
|
|
|
|
|
|
|
2022-07-04 17:59:09 +02:00
|
|
|
def pack_solar_array_deployment_test_into(object_id: bytearray, q: QueueHelper):
|
|
|
|
q.add_log_cmd("Testing S/A Deployment")
|
2021-02-16 15:33:26 +01:00
|
|
|
|
|
|
|
command = object_id + ActionIds.DEPLOY_SOLAR_ARRAYS
|
2022-07-04 17:59:09 +02:00
|
|
|
q.add_pus_tc(PusTelecommand(service=8, subservice=128, app_data=command))
|