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) pass_bar(Ctrl, msg)
elif TASK == TaskType.YELLOW_LIGHT: # TODO image elif TASK == TaskType.YELLOW_LIGHT: # TODO image
from task_3.task_3 import go_until_yellow_area 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, yellow_ratio_threshold=0.05)
go_until_yellow_area(Ctrl, msg)
elif TASK == TaskType.RED_BAR: elif TASK == TaskType.RED_BAR:
from task_4.task_4 import go_straight_until_red_bar from task_4.task_4 import go_straight_until_red_bar
go_straight_until_red_bar(Ctrl, msg) go_straight_until_red_bar(Ctrl, msg)
@ -96,7 +95,6 @@ def main():
#TAG task - 1 #TAG task - 1
# run_task_1(Ctrl, msg, time_sleep=TIME_SLEEP) # run_task_1(Ctrl, msg, time_sleep=TIME_SLEEP)
# TAG task - 2 # TAG task - 2
# arrow_direction='left' # arrow_direction='left'
# arrow_direction = run_task_2_demo(Ctrl, msg, xy_flag=False) # TEST # arrow_direction = run_task_2_demo(Ctrl, msg, xy_flag=False) # TEST
@ -105,7 +103,6 @@ def main():
# print('🏹 arrow_direction: ', arrow_direction) # print('🏹 arrow_direction: ', arrow_direction)
# if(arrow_direction=='left'): speak("左侧路线") # if(arrow_direction=='left'): speak("左侧路线")
# else: speak("右侧路线") # else: speak("右侧路线")