this works
This commit is contained in:
parent
839da7a224
commit
79b3c269e6
@ -249,24 +249,21 @@ def handle_payload_procedure(
|
|||||||
obj_id_man = get_object_ids()
|
obj_id_man = get_object_ids()
|
||||||
assert len(cmd_path_list) >= 2
|
assert len(cmd_path_list) >= 2
|
||||||
if cmd_path_list[0] == "ploc_mpsoc":
|
if cmd_path_list[0] == "ploc_mpsoc":
|
||||||
assert len(cmd_path_list) >= 3
|
return pack_ploc_mpsoc_commands(queue_helper, cmd_path_list[1])
|
||||||
return pack_ploc_mpsoc_commands(queue_helper, cmd_path_list[2])
|
|
||||||
if cmd_path_list[0] == "ploc_supv":
|
if cmd_path_list[0] == "ploc_supv":
|
||||||
assert len(cmd_path_list) >= 3
|
return pack_ploc_supv_commands(queue_helper, cmd_path_list[1])
|
||||||
return pack_ploc_supv_commands(queue_helper, cmd_path_list[2])
|
|
||||||
if cmd_path_list[0] == "rad_sensor":
|
if cmd_path_list[0] == "rad_sensor":
|
||||||
assert len(cmd_path_list) >= 3
|
assert len(cmd_path_list) >= 3
|
||||||
object_id = cast(ObjectIdU32, obj_id_man.get(RAD_SENSOR_ID))
|
object_id = cast(ObjectIdU32, obj_id_man.get(RAD_SENSOR_ID))
|
||||||
return create_rad_sensor_cmd(
|
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":
|
if cmd_path_list[0] == "pl_pcdu":
|
||||||
assert len(cmd_path_list) >= 3
|
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":
|
if cmd_path_list[0] == "scex":
|
||||||
assert len(cmd_path_list) >= 3
|
|
||||||
return pack_scex_cmds(
|
return pack_scex_cmds(
|
||||||
cmd_str=cmd_path_list[2],
|
cmd_str=cmd_path_list[1],
|
||||||
q=queue_helper,
|
q=queue_helper,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user