This commit is contained in:
havocrao 2025-08-21 12:45:56 +08:00
parent ae8e12bf74
commit 253f5eab81

View File

@ -72,8 +72,7 @@ def main():
pass_bar(Ctrl, msg)
elif TASK == TaskType.YELLOW_LIGHT: # TODO image
from task_3.task_3 import go_until_yellow_area
# turn_degree_v2(Ctrl, msg, degree=-90, absolute=True)
go_until_yellow_area(Ctrl, msg)
go_until_yellow_area(Ctrl, msg, yellow_ratio_threshold=0.05)
elif TASK == TaskType.RED_BAR:
from task_4.task_4 import go_straight_until_red_bar
go_straight_until_red_bar(Ctrl, msg)
@ -95,7 +94,6 @@ def main():
#TAG task - 1
# run_task_1(Ctrl, msg, time_sleep=TIME_SLEEP)
# TAG task - 2
# arrow_direction='left'
@ -104,7 +102,6 @@ def main():
# arrow_direction='left'
# print('🏹 arrow_direction: ', arrow_direction)
# if(arrow_direction=='left'): speak("左侧路线")
# else: speak("右侧路线")