View Single Post
  #1   Spotlight this post!  
Unread 02-11-2011, 08:45 PM
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Robot going left during autonomous

Never mind, we fixed it with our own code.

Code:
DigitalInput left, middle, right;
left = new DigitalInput(1);
middle = new DigitalInput(2);
right = new DigitalInput(3);

public void autonomous() {
    while(isAutonomous()) {
        if(left.get()) {
            // drive code to turn right.
        } else if(middle.get()) {
            // drive code to go straight.
        } else if(right.get()) {
            // drive code to turn left.
        }
    }
}
or something like that. It was pretty simple, now that I think about it.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote