Thread: Multiple Autons
View Single Post
  #14   Spotlight this post!  
Unread 11-03-2010, 23:30
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
Re: Multiple Autons

That works,and you'd put it inside the brackets enclosing the class, except you have to change the method declarations from private boolean Name to private static boolean Name.

There's a much simpler way to do this. In autonomousInit(), do:

if (driveStick.getRawButton(1)) {
run whatever;
}
if (driveStick.getRawButton(2)) {
run whatever;
}
and so on
Reply With Quote