HP - Line - Follower
HP - Line - Follower
Reference
Note: Remember that it is important to calibrate your Line Tracking Sensors by calculating a threshold
value. For more help on calculating thresholds, see the “Thresholds” reference document.
© Carnegie Mellon Robotics Academy / For use with VEX robotics systems Line Tracking Sensor • 1
ROBOTC
Reference
task main ()
{
robotType(recbot); //Specifies the robot type
stop(); // Stop.
}
task main ()
{
robotType(recbot); //Specifies the robot type
lineTrackForRotations(3.75, 500);
/* Has the robot follow a line for 3.75 rotations using a
threshold value of 500. The number of rotations is counted
for both encoders; whenever either encoder counts to 3.75
rotations, the robot will stop following the line. */
stop(); // Stop.
}
© Carnegie Mellon Robotics Academy / For use with VEX robotics systems Line Tracking Sensor • 2