🐛 Refactor task 2.5 and task 3 movement logic by commenting out unused code and adjusting parameters for improved execution flow. Streamline task functions for better clarity and maintainability.
This commit is contained in:
parent
e9f931e6bd
commit
824e31edde
@ -32,14 +32,8 @@ def run_task_2_5(Ctrl, msg, direction='left'):
|
||||
)
|
||||
|
||||
go_straight(Ctrl, msg, distance=0.1, speed=0.5, observe=observe)
|
||||
|
||||
section('任务2.5-2:第二次旋转', "移动")
|
||||
|
||||
turn_degree_v2(Ctrl, msg, degree=90, absolute=True)
|
||||
|
||||
go_straight(Ctrl, msg, distance=0.1, speed=0.5, observe=observe)
|
||||
|
||||
|
||||
def run_task_2_5_back(Ctrl, msg, direction='left'):
|
||||
section('任务2.5-back:预备进入任务3', "启动")
|
||||
turn_degree_v2(Ctrl, msg, degree=0, absolute=True)
|
||||
|
@ -495,7 +495,6 @@ def run_task_3(ctrl, msg, time_sleep=5000):
|
||||
info('开始执行任务3...', "启动")
|
||||
|
||||
turn_degree_v2(ctrl, msg, 90, absolute=True)
|
||||
go_lateral(ctrl, msg, distance=0.2, speed=0.1, observe=True) # TEST
|
||||
|
||||
section('任务3-1:up', "开始")
|
||||
pass_up_down(ctrl, msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user