Skip to main content

Ramp

 We used some functions and variables for ramp detection such as: Two line following function on the uphill and downhill with a important variable named "time slow".

Robot will detect the ramp using gyroscope , if its angel is above or equal 25 degrees it will detect the ramp and it will lower it arms and boosts itself and also it will speed up, after going trough the ramp when its angel is zero degrees it will lower its speed and goes back to the normal mode. and because after any uphill ramp a downhill ramp exists with using time slow variable it will lower its line following speed so it can go down form a downward ramp correctly.

Also our wheels helps our robot to go up the ramp using double friction.


Comments

Popular posts from this blog

Obstacle

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.  

Line Following

 We used some coefficients in this function that we get from putting our sensors on the green color, using this coefficients in our program, robot will follow the line perfectly , this coefficients are different in our sensors.  We put our center IR Sensor in third priority because if we wrote it in main priority it wouldn't be able to do next conditions. We made a function named "Time No Act" it works when robot follows a line and it 45 angel goes below degrees, in this function robot only goes forward until the tiles with under 45 degrees.

Green Detection

we made easier to detect the hardest colors with some coefficient, this coefficient are divide green by red , green by blue and blue by red. With placing two color detection sensor on our Sensor Board  and seeing the numbers of this coefficients and also setting them on our robot menu using our TFT Display  we can make sure of our robots green detection. As we have two states for the robots rotation on the green color 90 and 45 degrees we should separate this two states. when the robot reaches intersection it goes forward a bit , after that if the facing tile is white , robot will rotate 45 degrees and follow the line. If the facing tile is a black line robot will rotate 90 degrees and follow the line.