This commit is contained in:
2021-03-19 18:01:17 +01:00
parent dc999188c0
commit 6e3bef7ac5
8 changed files with 43 additions and 68 deletions

View File

@ -1,5 +1,5 @@
from typing import Tuple
from config.object_ids import ObjectIds
from config.object_ids import CustomObjectIds
def user_analyze_service_8_data(
@ -10,19 +10,12 @@ def user_analyze_service_8_data(
is a list of header strings to print and the second list is a list of values to print.
The TMTC core will take care of printing both lists and logging them.
Please note that the object IDs should be compared by value because direct comparison of
enumerations does not work in Python. For example use:
if object_id.value == ObjectIds.TEST_OBJECT.value
to test equality based on the object ID list.
@param object_id:
@param action_id:
@param custom_data:
@return:
"""
if object_id == ObjectIds.PDU2_HANDLER_ID.value:
if object_id == CustomObjectIds.PDU2_HANDLER_ID.value:
header_list = ['PDU2 Service 8 Reply']
data_string = str()