diff --git a/main.py b/main.py index 96c03ab..71683f4 100755 --- a/main.py +++ b/main.py @@ -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("右侧路线")