Thread: Multiple Autons
View Single Post
  #6   Spotlight this post!  
Unread 08-03-2010, 21:02
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Multiple Autons

Quote:
Originally Posted by ideasrule View Post
You can definitely do it from the Classmate. Just go to the I/O tab and select one or more of the digital inputs. In the code, use station.getInstance().getDigitalInput(number) to get the value of the input, where station is the name of the DriverStation object. There are 10 digital inputs, so you can have 2^10-1=1023 different autonomous programs.
Yes, but I'm fairly certain that you cannot read from the driver station input in autonomous mode.

Also, 1024 different autonomous programs, you only subtract 1 to get the highest number you can represent, so you can represent 0-1023, which is 1024 integers total.

Last edited by LukeS : 08-03-2010 at 21:04. Reason: typo
Reply With Quote