Go to Post Teamwork gracious professionalism robots = FIRST Robotics - Bcahn836 [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 06-02-2011, 11:08
nyindojin nyindojin is offline
Registered User
FRC #3059
 
Join Date: Jan 2009
Location: New York
Posts: 34
nyindojin is an unknown quantity at this point
How to set up mutiliple programs based on field location

During last year's competitions, I was able to see that teams were able to create switches for their robot which told the robot what to do based on their location on the field. Does anyone now how this is done or any clue about it or as to where to get information about such a thing? Is it electrical wiring or programming?

For example press a switch (or flip a switch) "A" (out of three) and the robot does only the things programmed for that switch.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2011, 11:16
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: How to set up mutiliple programs based on field location

The typical way to do this is to read the switches (whether on the robot or the Driver Station) at the beginning of Autonomous mode, then use a Case Structure to choose which code to run based on the input.

You can see an example of this behavior in the default Autonomous code. It is setup to use 2 switches attached to the Cypress PSOC on the Driver Station in order to select between straight, left Y or right Y. In the default code the Case Structure only effects a small portion of the code, but it is often wrapped around a larger chunk of code to switch between very different autonomous modes.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2011, 12:21
nyindojin nyindojin is offline
Registered User
FRC #3059
 
Join Date: Jan 2009
Location: New York
Posts: 34
nyindojin is an unknown quantity at this point
Re: How to set up mutiliple programs based on field location

Thank you.
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 10:13.

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