View Single Post
  #2   Spotlight this post!  
Unread 03-02-2011, 20:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote