View Single Post
  #4   Spotlight this post!  
Unread 01-12-2014, 22:53
RoboNerd01's Avatar
RoboNerd01 RoboNerd01 is offline
Super User
AKA: Austin Rowe
FRC #3604 (Goon Squad)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Woodhaven
Posts: 11
RoboNerd01 is an unknown quantity at this point
Wink Re: Drop-Down for autonomous in dashboard

I love the creative way the person above does it. But there is a much simpler and convenient way. And it will give you your desired result of a drop down menu!

1. In the robots code create a case structure in which the auton code modes will be placed. The condition of this case structure will be connected to a dashboard nimber variable. Go to the WPI robotics library palate then go to dashboard and then find the SD read number VI. Name the variable what you want and remember it. Make sure the case structure has enough cases to hold all your modes of course.

2. Now in the dashboard code. Go to the numerics palate and get an Enum constant. Right click it, and change it to a control.

3. Right click it again and select edit items and click insert. Add as many modes as you want and take note of the values next to each item (or mode) you enter. As these are the case the mode will be in in the robot's code.

4. Now you need to get a SD write number VI. Name it the same as the other dashboard variable.

5. And lastly, connect the Enum control to the SD write number VI.

Done! . Feel free to PM me for questions. I'm happy to help.

Last edited by RoboNerd01 : 01-12-2014 at 23:00.
Reply With Quote