Enhance run_task_5 in task_5.py: Added move_to_hori_line function call to improve robot navigation by ensuring it moves to a horizontal line before returning results.

This commit is contained in:
havoc420ubuntu 2025-05-28 11:41:26 +00:00
parent eb34eeeb3e
commit 12be1b8e67

View File

@ -244,5 +244,7 @@ def run_task_5(ctrl, msg, direction='left', observe=False):
section('任务5-5转弯', "转弯")
turn_degree(ctrl, msg, degree=90)
move_to_hori_line(ctrl, msg, target_distance=1.1, observe=observe)
# 返回移动和扫描结果
return go_success, res['qr_result']