update S/A depl cmd

This commit is contained in:
2022-10-13 18:04:35 +02:00
parent 50abe69f26
commit 6e8ef41d7c
3 changed files with 81 additions and 23 deletions

View File

@ -1,22 +0,0 @@
# -*- coding: utf-8 -*-
"""
@file 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 spacepackets.ecss import PusTelecommand
from tmtccmd.tc import DefaultPusQueueHelper
class ActionIds:
DEPLOY_SOLAR_ARRAYS = bytearray([0x0, 0x0, 0x0, 0x5])
def pack_solar_array_deployment_test_into(
object_id: bytearray, q: DefaultPusQueueHelper
):
q.add_log_cmd("Testing S/A Deployment")
command = object_id + ActionIds.DEPLOY_SOLAR_ARRAYS
q.add_pus_tc(PusTelecommand(service=8, subservice=128, app_data=command))