fix: up
This commit is contained in:
parent
ae8e12bf74
commit
253f5eab81
5
main.py
5
main.py
@ -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)
|
||||||
@ -95,7 +94,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'
|
||||||
@ -104,7 +102,6 @@ def main():
|
|||||||
# arrow_direction='left'
|
# arrow_direction='left'
|
||||||
# print('🏹 arrow_direction: ', arrow_direction)
|
# print('🏹 arrow_direction: ', arrow_direction)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# if(arrow_direction=='left'): speak("左侧路线")
|
# if(arrow_direction=='left'): speak("左侧路线")
|
||||||
# else: speak("右侧路线")
|
# else: speak("右侧路线")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user