Go to Post I wouldn't want to face THAT bad boy in competition... - Iain McLeod [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 03-02-2010, 21:43
caitlin2437 caitlin2437 is offline
Registered User
FRC #2437 (Lancer Robotics)
Team Role: Leadership
 
Join Date: Nov 2007
Rookie Year: 2007
Location: Hawaii
Posts: 6
caitlin2437 is an unknown quantity at this point
Send a message via Yahoo to caitlin2437
Smile Utlizing the Driver Station to Assist Autonomous Mode

In the FRC Driver Station (under the Operation tab), is a Team Station drop down menu. The options in this drop down menu include the positions such as Red 1 and Blue 2. I am assuming that this enables to driver to input the position of his or her robot?

Also, in the Autonomous Independent framework, a Get Alliance vi has been provided and used. The vi can return the team alliance and field position of the robot.

Since our team is planning on writing a different code for each field position, we would like to know if there is a way to link these two? For example, is there a way to program our autonomous so that if the driver inputs 'Red 3' in the driver station, the code that we designate 'Red 3' will run?

If that is not an option, how would you reccomend handling various codes that depend on the robot's position? Or are you all writing a general code that could work well in all positions?

Thank you! Hope I've made sense!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2010, 22:49
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Utlizing the Driver Station to Assist Autonomous Mode

Quote:
Originally Posted by caitlin2437 View Post
In the FRC Driver Station (under the Operation tab), is a Team Station drop down menu. The options in this drop down menu include the positions such as Red 1 and Blue 2. I am assuming that this enables to driver to input the position of his or her robot?
Not quite. It actually describes the position of the team's driver station, not of the robot. During competition, it's set by the Field Management System. You likely won't be able to use the information for anything helpful.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-02-2010, 23:05
caitlin2437 caitlin2437 is offline
Registered User
FRC #2437 (Lancer Robotics)
Team Role: Leadership
 
Join Date: Nov 2007
Rookie Year: 2007
Location: Hawaii
Posts: 6
caitlin2437 is an unknown quantity at this point
Send a message via Yahoo to caitlin2437
Re: Utlizing the Driver Station to Assist Autonomous Mode

Ah, I see.

So, it would be best to code one general autonomous sequence that could work for all three positions rather than attempting to create a seperate sequence for each position? Or are you aware of any other strategies that would allow us to include more than one autonomous sequence?

Thank you so much - that's been a huge help. Our team has been wondering about its function for quite a while. (:
Reply With Quote
  #4   Spotlight this post!  
Unread 03-02-2010, 23:24
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: Utlizing the Driver Station to Assist Autonomous Mode

Switches or similar sensors either on the robot or on the driver station (value read during autonomous disabled and stored) are common ways to have multiple autonomous modes.

Before the match set the switches for the appropriate mode and you're all set.

You will be able to have 2^(N) modes where N is the number of switches used.
__________________


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
  #5   Spotlight this post!  
Unread 03-02-2010, 23:27
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Utlizing the Driver Station to Assist Autonomous Mode

Quote:
Originally Posted by caitlin2437 View Post
...are you aware of any other strategies that would allow us to include more than one autonomous sequence?
You can use digital or analog inputs and a multiple-position switch to tell the robot what you want it to do. Or you can put a selector on your driver station and have the robot remember its state before the match begins so it can be used during autonomous. You could even put a configuration file on the cRIO with instructions for which routine to execute.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-02-2010, 23:29
Chris is me's Avatar
Chris is me Chris is me is offline
no bag, vex only, final destination
AKA: Pinecone
FRC #0228 (GUS Robotics); FRC #2170 (Titanium Tomahawks)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Glastonbury, CT
Posts: 7,721
Chris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond reputeChris is me has a reputation beyond repute
Send a message via AIM to Chris is me
Re: Utlizing the Driver Station to Assist Autonomous Mode

You can even use switches to set the number of seconds of delay you use in an autonomous with said switches. Could be useful for cooperation with alliance partners.
__________________
Mentor / Drive Coach: 228 (2016-?)
...2016 Waterbury SFs (with 3314, 3719), RIDE #2 Seed / Winners (with 1058, 6153), Carver QFs (with 503, 359, 4607)
Mentor / Consultant Person: 2170 (2017-?)
---
College Mentor: 2791 (2010-2015)
...2015 TVR Motorola Quality, FLR GM Industrial Design
...2014 FLR Motorola Quality / SFs (with 341, 4930)
...2013 BAE Motorola Quality, WPI Regional #1 Seed / Delphi Excellence in Engineering / Finalists (with 20, 3182)
...2012 BAE Imagery / Finalists (with 1519, 885), CT Xerox Creativity / SFs (with 2168, 118)
Student: 1714 (2009) - 2009 Minnesota 10,000 Lakes Regional Winners (with 2826, 2470)
2791 Build Season Photo Gallery - Look here for mechanism photos My Robotics Blog (Updated April 11 2014)
Reply With Quote
  #7   Spotlight this post!  
Unread 03-02-2010, 23:41
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Utlizing the Driver Station to Assist Autonomous Mode

Looks like I beat Greg to this. You can also use the virtual I/O on the Dashboard, same functionality without all that messy hardware! (Note: I love the messy hardware...)
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 05-02-2010, 15:13
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Re: Utlizing the Driver Station to Assist Autonomous Mode

Quote:
Originally Posted by Vikesrock View Post
Switches or similar sensors either on the robot or on the driver station (value read during autonomous disabled and stored) are common ways to have multiple autonomous modes.
What the names of such switches or sensors? Or do you have any tutorials that would help me to better understand them?

Quote:
Originally Posted by Alan Anderson View Post
You can use digital or analog inputs and a multiple-position switch to tell the robot what you want it to do. Or you can put a selector on your driver station and have the robot remember its state before the match begins so it can be used during autonomous.
Where would I get a multiple-position switch and how would I program that? Do you know where I could get some examples or tutorials to follow?



Quote:
Originally Posted by Chris is me View Post
You can even use switches to set the number of seconds of delay you use in an autonomous with said switches. Could be useful for cooperation with alliance partners.
What are these switches called?

Thank you so much for all of the great advice, guys!
Reply With Quote
  #9   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
  #10   Spotlight this post!  
Unread 13-02-2010, 13:05
Team1824 Team1824 is offline
Registered User
FRC #1824
 
Join Date: Oct 2008
Location: Peterborough
Posts: 14
Team1824 is an unknown quantity at this point
Re: Utlizing the Driver Station to Assist Autonomous Mode

how could you use joystick buttons to increment a global variable?
__________________
Team 1824
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver Station for Autonomous shrimp Control System 5 03-03-2009 17:05
Driver station communication during autonomous drosophyllum Control System 1 23-02-2009 21:39
paper: Set and display your Auto-Mode using LabVIEW and the Driver Station PhilBot Extra Discussion 0 11-02-2009 12:32
Updating the Driver Station PHSRobotics FRC Control System 1 25-01-2009 19:11
Mounting the Driver Station...? 1708xMr.Roboto FRC Control System 1 15-12-2008 12:34


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

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