we recognize the obstacle with the distance meter (ultrasonic) or the microswitch that is in front of the robot, after the detection:
If the robot detects the obstacle with the distance meter it will:
1-goes backward , 2-turns 90 degrees , 3-goes straight for a bit , 4-turns 45 degrees
If the robot detects the obstacle with its microswitch's it will:
1- if the left microswitch hits the obstacle it will goes leftward until the distance meter sensor detects the obstacle.
2- if the right microswitch hits the obstacle it will goes rightward until the distance meter sensor detects the obstacle.
Comments
Post a Comment