|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: Multi-Choice Autonomous
About how much text do you think I could put in each text field?
|
|
#17
|
|||
|
|||
|
Re: Multi-Choice Autonomous
If you have the DS, give it a try. In the first Button, I typed "About this much". It wrapped on the 'h'.
Greg McKaskle |
|
#18
|
||||
|
||||
|
Re: Multi-Choice Autonomous
No, sorry, I don't have the DS in front of me, but I get the picture: I only have space for 2 or 3 keywords.
|
|
#19
|
||||
|
||||
|
Re: Multi-Choice Autonomous
We are using another method based on the SD. We have a record and replay system that stores the driver & manipulator input to a file on the cRIO. Autonomous reads the selected file and populates the variables that control the robot. The drive team chooses the autonomous to run from our custom dashboard app before the start of the match.
In Begin.vi we populate the array of autonomous choices (custom file extension *.auto) and write it to the SD. In Dashboard Main.vi we read the array of choices and populate an enum ring's String Property with the file names. Autonomous then sends back the values it received so we know it got the correct values. |
|
#20
|
||||
|
||||
|
Re: Multi-Choice Autonomous
Here's yet another method if you don't like the DS buttons:
Set up a Enum text box on your dashboard and give each number value a corresponding label, showing your driver which program to use. ![]() Write the integer value to a SD variable and then in your autonomous mode, read the value and have a case structure select the correct program to run based simply on the integer value. ![]() When you set up your player station, select the correct program then leave the variable alone. As the match starts, it will read the variable from your dashboard once at the beginning of the Autonomous Period, then execute the correct program. Our team has used this method for two years and never had an issue. It's reliable and versatile, allowing for many different modes and configurations, as long as your drivers remember to check and make sure it's correct before the match starts XD. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|