|
Re: Following Line Sensors
The default code uses the Arcade form of Robot Drive. Since your robot teleop function has been modified to be able to drive and steer the robot, try making similar change to the autonomous.
The two control elements used in autonomous are the steering amount and forward velocity. The line sensors determine whether to drive left, right, straight, or stop. Try to use the mecanum version of drive to perform these actions, and perhaps put the code into the case statement.
Greg McKaskle
|