示例#1
0
motor_controller.move_back_wheel(10)
print("back" + str(datetime.now().time()))
sleep(0.2)
motor_controller.move_left_wheel(10)
motor_controller.move_right_wheel(10)
motor_controller.move_back_wheel(10)
sleep(0.2)
motor_controller.move_left_wheel(10)
motor_controller.move_right_wheel(10)
motor_controller.move_back_wheel(10)
sleep(0.2)
motor_controller.move_left_wheel(-40)
motor_controller.move_right_wheel(40)
sleep(0.2)
motor_controller.move_left_wheel(-40)
motor_controller.move_right_wheel(40)
sleep(0.2)
motor_controller.move_left_wheel(-10)
motor_controller.move_right_wheel(-10)
motor_controller.move_back_wheel(-10)
sleep(0.2)
'''
motor_controller.move_left_wheel(-20)
motor_controller.move_right_wheel(-20)
motor_controller.move_back_wheel(-20)


# get_coordinates = GetCoordinates("ball")
# coordinates = get_coordinates.get_coordinates()
# print(coordinates[1])