eive-tmtc/pus_tm/tmtcc_pus_hk_handling.py

27 lines
845 B
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-02-03 14:14:54 +01:00
from tmtc_core.pus_tm.tmtcc_pus_service_3 import Service3Base
2020-12-17 17:50:00 +01:00
from tmtc_core.utility.tmtcc_logger import get_logger
LOGGER = get_logger()
def handle_user_hk_packet(
object_id: bytearray, hk_data: bytearray,
service3_packet: Service3Base) -> Tuple[list, list, bytearray]:
"""
This function is called when a Service 3 Housekeeping packet is received.
@param object_id:
@param hk_data:
@param service3_packet:
@return:
"""
LOGGER.info("Service3TM: Parsing for this SID has not been implemented.")
return [], [], bytearray()