4. [main: openapi.py]:新增 rl_task.set_run_params 指令支持,可设定速度滑块以及是否重复运行
5. [main: do_brake/do_current/factory_test.py]:在初始化运动时增加 `clibs.execution('rl_task.set_run_params', hr, w2t, tab_name, loop_mode=True, override=1.0)`
This commit is contained in:
@ -290,6 +290,7 @@ def run_rl(path, hr, md, loadsel, w2t):
|
||||
clibs.execution('state.switch_motor_on', hr, w2t, tab_name)
|
||||
|
||||
# 3. 开始运行程序,单轴运行35s
|
||||
clibs.execution('rl_task.set_run_params', hr, w2t, tab_name, loop_mode=True, override=1.0)
|
||||
clibs.execution('rl_task.run', hr, w2t, tab_name, tasks=['current'])
|
||||
_t_start = time()
|
||||
while True:
|
||||
|
Reference in New Issue
Block a user