get commanded dipole service 8 hook wip
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
from typing import Tuple
|
||||
from config.object_ids import ObjIdIds
|
||||
from pus_tc.imtq import ImtqActionIds
|
||||
|
||||
|
||||
def user_analyze_service_8_data(
|
||||
@ -25,7 +26,19 @@ def user_analyze_service_8_data(
|
||||
data_string = data_string.rstrip(',')
|
||||
data_string = data_string.rstrip()
|
||||
content_list = [data_string]
|
||||
elif object_id == ObjIdIds.IMTQ_HANDLER_ID:
|
||||
return handle_imtq_replies(action_id, custom_data)
|
||||
else:
|
||||
header_list = []
|
||||
content_list = []
|
||||
return header_list, content_list
|
||||
|
||||
|
||||
def handle_imtq_replies(action_id: int, custom_data: bytearray) -> Tuple[list, list]:
|
||||
header_list = []
|
||||
content_list = []
|
||||
if action_id == ImtqActionIds.get_commanded_dipole:
|
||||
header_list = ['Commanded X-Dipole', 'Commanded Y-Dipole', 'Commanded Z-Dipole']
|
||||
x_dipole =
|
||||
content_list = [custom_data[:4], custom_data[4:6], custom_data[6:10]]
|
||||
return header_list, content_list
|
||||
|
Reference in New Issue
Block a user