this works

This commit is contained in:
Robin Müller 2024-01-25 10:04:45 +01:00
parent 839da7a224
commit 79b3c269e6
Signed by: muellerr
GPG Key ID: A649FB78196E3849
1 changed files with 5 additions and 8 deletions

View File

@ -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,
)