View Single Post
  #2   Spotlight this post!  
Unread 29-02-2012, 22:54
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
Re: Multiple Auto modes

Another way of doing this is to use the digital input of the driver station program. Goto the I/O on DS program and you can set channels 1-8 are true or false. Think of it as a software version of hardware switches. These switches can then be read from your program.

Look in the default framework program in the Autonomous Independent. There is already a vi in there that checks the status of the switches. Attached is a portion of code that will take these inputs and convert them to a number. Wire this to a case structure to run the auto program you want.
Attached Images
File Type: bmp DS Input.bmp (175.8 KB, 55 views)
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote