View Single Post
  #5   Spotlight this post!  
Unread 05-02-2010, 17:14
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Utlizing the Driver Station to Assist Autonomous Mode

By putting the necessary code into the "Disabled" VI, you can create a small VI to use joystick buttons to increment a global variable. Use that global variable in your autonomous VI to select the routine you want to run. You can feed this back to either a custom dashboard, or use the "User Messages" VI (which feeds back to the user display in the lower left of the driverstation) so you can actively watch what you're selecting.

In this manner you don't need to build any switch, and can select the routine to run after your drivers hook everything up on the field and turn the robot on.

Remember: Disabled only means that outputs on the robot aren't set. Your code in the disabled VI is still running, so you can do work there.
Reply With Quote