eive-tmtc/pus_tm/hk_handling.py

31 lines
1.2 KiB
Python
Raw Normal View History

2020-12-17 17:50:00 +01:00
"""
@brief This file transfers control of housekeeping handling (PUS service 3) to the
developer
@details Template configuration file. Copy this folder to the TMTC commander root and adapt
it to your needs.
"""
from typing import Tuple
2021-03-19 17:39:52 +01:00
from tmtccmd.pus_tm.service_3_base import Service3Base
from tmtccmd.utility.tmtcc_logger import get_logger
2020-12-17 17:50:00 +01:00
LOGGER = get_logger()
2021-03-19 17:39:52 +01:00
def handle_user_hk_packet(object_id: int, set_id: int, hk_data: bytearray,
2021-02-27 13:13:12 +01:00
service3_packet: Service3Base) -> Tuple[list, list, bytearray, int]:
2020-12-17 17:50:00 +01:00
"""
This function is called when a Service 3 Housekeeping packet is received.
2021-02-27 13:13:12 +01:00
2020-12-17 17:50:00 +01:00
@param object_id:
2021-02-27 13:13:12 +01:00
@param set_id:
2020-12-17 17:50:00 +01:00
@param hk_data:
@param service3_packet:
2021-02-27 13:13:12 +01:00
@return: Expects a tuple, consisting of two lists, a bytearray and an integer
The first list contains the header columns, the second list the list with
the corresponding values. The bytearray is the validity buffer, which is usually appended
at the end of the housekeeping packet. The last value is the number of parameters.
2020-12-17 17:50:00 +01:00
"""
LOGGER.info("Service3TM: Parsing for this SID has not been implemented.")
2021-02-27 13:13:12 +01:00
return [], [], bytearray(), 0