How to make a robot navigate a maze?
问题 I'm using the Myro library with the Python language. I've had some weird results. My idea was to call the getObstacle sensors. left = getObstacle(0) center = getObstacle(1) right = getObstacle(2) I want the robot to move forward as long as the center obstacle sensor is less than or equal to 4500. If the right obstacle sensor on the robot has a higher reading than the left obstacle sensor, I want it to turn left. Otherwise turn right. Here are my attempts on youtube Attempt 1 Attempt 2 I'm