some inspector tweaks
This commit is contained in:
parent
bdbd9fa3c8
commit
fea2e77b0a
@ -13,7 +13,7 @@
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtc_client_cli.py" />
|
||||
<option name="PARAMETERS" value="-s 17 -t 3" />
|
||||
<option name="PARAMETERS" value="-s 17 -o 0 -t 3" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
|
@ -6,7 +6,7 @@
|
||||
import sys
|
||||
|
||||
from tmtccmd.core.backend import TmTcHandler
|
||||
from tmtccmd.utility.tmtcc_logger import get_logger
|
||||
from tmtccmd.utility.logger import get_logger
|
||||
|
||||
LOGGER = get_logger()
|
||||
|
||||
|
@ -6,15 +6,15 @@
|
||||
"""
|
||||
import struct
|
||||
from typing import Tuple
|
||||
from config.object_ids import ObjectIds
|
||||
from tmtccmd.pus_tm.service_3_housekeeping import Service3Base
|
||||
from tmtccmd.utility.tmtcc_logger import get_logger
|
||||
from tmtccmd.utility.logger import get_logger
|
||||
|
||||
from config.object_ids import TEST_DEVICE_0_ID, TEST_DEVICE_1_ID
|
||||
LOGGER = get_logger()
|
||||
|
||||
|
||||
def service_3_hk_handling(
|
||||
object_id: int, set_id: int, hk_data: bytearray, service3_packet: Service3Base
|
||||
object_id: bytes, set_id: int, hk_data: bytearray, service3_packet: Service3Base
|
||||
) -> Tuple[list, list, bytearray, int]:
|
||||
"""
|
||||
This function is called when a Service 3 Housekeeping packet is received.
|
||||
@ -35,8 +35,7 @@ def service_3_hk_handling(
|
||||
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.
|
||||
"""
|
||||
if object_id == ObjectIds.TEST_DEVICE_0.value or \
|
||||
object_id == ObjectIds.TEST_DEVICE_1.value:
|
||||
if object_id == TEST_DEVICE_0_ID or object_id == TEST_DEVICE_1_ID:
|
||||
return handle_test_set_deserialization(hk_data=hk_data)
|
||||
else:
|
||||
LOGGER.info("Service3TM: Parsing for this SID has not been implemented.")
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ffa2d0d6f0f113ab964a703abd200d92c37f6a63
|
||||
Subproject commit 8ca16e305d18eb8df2165680676992261af99c1b
|
Reference in New Issue
Block a user