Go to Post Besides, all the FIRSTers that I know - are children at heart. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   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, 56 views)
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #2   Spotlight this post!  
Unread 01-03-2012, 05:24
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Multiple Auto modes

a good thing to use also is the axis 3 on the joysticks (the knob at its base) if you run out of driver station input

But who would run out? (us)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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