Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Multi-Choice Autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=127615)

alexander.h 09-03-2014 08:09

Re: Multi-Choice Autonomous
 
Quote:

Originally Posted by Greg McKaskle (Post 1355748)
Yes, each button has a text field to the right of it. It should store and retrieve those when you next launch the DS. They are stored in the ini file. The names are not sent to the robot, only the Boolean values.

Greg McKaskle

About how much text do you think I could put in each text field?

Greg McKaskle 09-03-2014 08:12

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

alexander.h 09-03-2014 08:14

Re: Multi-Choice Autonomous
 
Quote:

Originally Posted by Greg McKaskle (Post 1355750)
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

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.

chris.boyle 18-03-2014 08:56

Re: Multi-Choice Autonomous
 
4 Attachment(s)
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.

Invictus3593 19-03-2014 00:53

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.


All times are GMT -5. The time now is 20:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi