Thread: Multiple Autons
View Single Post
  #13   Spotlight this post!  
Unread 11-03-2010, 20:26
The Engineer The Engineer is offline
Registered User
FRC #2607
 
Join Date: Jan 2010
Location: America
Posts: 14
The Engineer is an unknown quantity at this point
Re: Multiple Autons

I wrote a code that can switch between i am wondering were i can put it that it will be accessible in disabled and in autonomous.
if it helps my code looks like this(


private boolean AutonMode0() {
if (driveStick.getRawButton(1))
return false;
if (driveStick.getRawButton(2))
return false;
if (driveStick.getRawButton(3))
return true;
if (driveStick.getRawButton(4))
return true;
else {
return false;
}
}
private boolean AutonMode1() {
if (driveStick.getRawButton(1))
return false;
if (driveStick.getRawButton(2))
return true;
if (driveStick.getRawButton(3))
return false;
if (driveStick.getRawButton(4))
return true;
else {
return false;
}
}



)
Reply With Quote