Go to Post Avoid the impulse to shoot from the hip, and find out the full picture before deciding where you stand. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 15-01-2009, 17:20
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Telling drivers station your alliance

You can ask the drivers station which alliance you are on (kRed, kBlue) but how do you tell the drivers station? Is it a wire on the competition port? I'd like to use this information to control which trailer to track with the camera but I'm reluctant to do it if I can't test it. I'd hate to gamble that this function works and find out at the regionals that it doesn't.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2009, 17:42
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Telling drivers station your alliance

Mike,
The simple thing for the field controller to know which alliance is which is the side to which it is wired. However, you will know which alliance you are on. A simple switch read by a digital or analog input can easily trigger your code to search for one color goal or the other.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2009, 17:43
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Re: Telling drivers station your alliance

Without further information being released by FIRST to the contrary, I'm guessing this signal is provided through the ethernet connection to the Field Management System(FMS). Because of this, there is no easy way to simulate this outside of an official FRC field. What I would recommend as an alternative is designing two sets of code, one with the alliance detection and one without, and run tests during practice day to see what the outcome is. However, on the positive side, if it is in the C++ libraries, I'm guessing it's already been tested by the developers and working...

When in doubt,you could always ask on Q&A...
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2009, 07:21
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: Telling drivers station your alliance

Yes, adding a switch to the robot or the driver's station is easy enough but it is also easy to forget to set the switch in the heat of the competition and then your tracking is worse than useless. If you put the switch on the robot you lose the ability to correct is for the whole match. If lyou put it on the driver's station, then the information doesn't get to the robot during autonomous mode. Hopefully, the new field management system will allow driver station inputs during disabled mode.

That is why I'd like to use the built in alliance function.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-01-2009, 14:12
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: Telling drivers station your alliance

Quote:
Originally Posted by Mike Mahar View Post
If lyou put it on the driver's station, then the information doesn't get to the robot during autonomous mode.
It does get to the robot before autonomous mode, however. The joysticks and switches can be read while the robot is disabled, before the match begins.

(This assumes that the field control will work approximately the way it has for at least the past five years, with the state changing directly from teleoperated/disabled to autonomous/enabled, with no autonomous/disabled in between. If things have changed to be autonomous/disabled on powerup before the match starts, then a switch on the operator console won't work.)
Reply With Quote
  #6   Spotlight this post!  
Unread 17-01-2009, 08:43
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Telling drivers station your alliance

Also, don't forget there is a User Swith on the cRIO that can be read from the code. That is how we are planning to set which alliance we are on.
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
Telling the drivers station your alliance Mike Mahar Technical Discussion 2 17-01-2009 12:24
pic: Drivers of the Winning Alliance JYang Extra Discussion 2 26-10-2008 21:55
Telling alliance in the code Andrew Schreiber Programming 4 30-01-2008 10:30
How does your team pick your drivers? Tton General Forum 14 08-04-2003 20:54
Members of alliance station... archiver 2001 2 24-06-2002 01:26


All times are GMT -5. The time now is 03:27.

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