
09-03-2014, 07:55
|
 |
Lead Programmer, Captain, Driver
 FRC #3975 (The Dragons)
Team Role: Programmer
|
|
Join Date: Aug 2013
Rookie Year: 2012
Location: Montreal, Quebec, Canada
Posts: 261
|
|
|
Re: Multi-Choice Autonomous
Quote:
Originally Posted by Greg McKaskle
You can use the Boolean bits however you like. Note that you can also name the switches on the DS so that the drive team knows what they are selecting. Just click on the field and give them a short name.
In the auto, you may want to account for unusual settings, illegal values, etc. In those cases, be sure to run something.
A few things you may want to consider.
Searching for the first True Boolean in the array gives you eight valid values (0 - 7) with good labels on the DS.
Converting the Boolean array to a number is in the Numeric>>Conversion palette and it gives you 256 valid values (0-255). The encoding will be in binary and the DS will not read as well.
You can use the sliders too, so if some of your programs vary only be a speed or a steering angle, you may want to use a slider instead. They can also be named on the DS.
Greg McKaskle
|
I see, but where exactly do I edit the names of each digital input? Directly on the driver station?
|