From 79b3c269e6b68e803cc732d89a28b9ba97ae8222 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 25 Jan 2024 10:04:45 +0100 Subject: [PATCH] this works --- eive_tmtc/pus_tc/cmd_demux.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/eive_tmtc/pus_tc/cmd_demux.py b/eive_tmtc/pus_tc/cmd_demux.py index f46bccb..35b2855 100644 --- a/eive_tmtc/pus_tc/cmd_demux.py +++ b/eive_tmtc/pus_tc/cmd_demux.py @@ -249,24 +249,21 @@ def handle_payload_procedure( obj_id_man = get_object_ids() assert len(cmd_path_list) >= 2 if cmd_path_list[0] == "ploc_mpsoc": - assert len(cmd_path_list) >= 3 - return pack_ploc_mpsoc_commands(queue_helper, cmd_path_list[2]) + return pack_ploc_mpsoc_commands(queue_helper, cmd_path_list[1]) if cmd_path_list[0] == "ploc_supv": - assert len(cmd_path_list) >= 3 - return pack_ploc_supv_commands(queue_helper, cmd_path_list[2]) + return pack_ploc_supv_commands(queue_helper, cmd_path_list[1]) if cmd_path_list[0] == "rad_sensor": assert len(cmd_path_list) >= 3 object_id = cast(ObjectIdU32, obj_id_man.get(RAD_SENSOR_ID)) return create_rad_sensor_cmd( - object_id=object_id, q=queue_helper, cmd_str=cmd_path_list[2] + object_id=object_id, q=queue_helper, cmd_str=cmd_path_list[1] ) if cmd_path_list[0] == "pl_pcdu": assert len(cmd_path_list) >= 3 - return pack_pl_pcdu_commands(q=queue_helper, cmd_str=cmd_path_list[2]) + return pack_pl_pcdu_commands(q=queue_helper, cmd_str=cmd_path_list[1]) if cmd_path_list[0] == "scex": - assert len(cmd_path_list) >= 3 return pack_scex_cmds( - cmd_str=cmd_path_list[2], + cmd_str=cmd_path_list[1], q=queue_helper, )