move tcp server into own class and reverted hk handling back to functions from class

This commit is contained in:
2022-05-18 16:02:23 +02:00
parent de50dcc7fc
commit 437be64a28
4 changed files with 843 additions and 842 deletions

View File

@ -19,7 +19,7 @@ from config.object_ids import get_object_ids
from .event_handler import handle_event_packet
from .verification_handler import handle_service_1_packet
from .hk_handler import HkHandler
from .hk_handling import handle_hk_packet
from .action_reply_handler import handle_action_reply
LOGGER = get_console_logger()
@ -48,7 +48,7 @@ def pus_factory_hook(raw_tm_packet: bytes):
if service_type == 1:
handle_service_1_packet(printer=FSFW_PRINTER, raw_tm=raw_tm_packet)
elif service_type == 3:
HkHandler.getInstance().handle_hk_packet(
handle_hk_packet(
printer=FSFW_PRINTER, raw_tm=raw_tm_packet, obj_id_dict=obj_id_dict
)
elif service_type == 5: