- Comment out angle correction logic in go_straight function - Adjust go_straight parameters in task_1 - Add success message for horizontal line calibration - Update main function to include task_test - Modify marker request response format
16 lines
390 B
Python
16 lines
390 B
Python
import time
|
||
import sys
|
||
import os
|
||
|
||
# 添加父目录到路径,以便能够导入utils
|
||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||
|
||
from task_5.detect_arrow_direction import ArrowDetector
|
||
from base_move.turn_degree import turn_degree
|
||
|
||
def run_task_test(ctrl, msg):
|
||
ctrl.base_msg.stop()
|
||
turn_degree(ctrl, msg, 90)
|
||
turn_degree(ctrl, msg, 90)
|
||
|