Go to Post The JVN/Karthik segment should have more than enough spontaneity for everyone - Matt Krass [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 26-01-2009, 22:44
aeasson aeasson is offline
Registered User
FRC #2435
 
Join Date: Jan 2008
Location: Lawton, ok
Posts: 29
aeasson is an unknown quantity at this point
How to determine which alliance you are on?

Will there be a way that the autonomous mode software can use some information from the tournament control system to determine which alliance a robot is on? In other words how can we find out which target our camera should track without a downloading a new program at the start of each game?

Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2009, 22:46
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,072
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: How to determine which alliance you are on?

I too am interested in the answer to this question. It would eliminate the possibility of flipping the autonomous mode switch the wrong way...
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2009, 22:48
IndySam's Avatar
IndySam IndySam is offline
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,347
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: How to determine which alliance you are on?

You will get a match schedule that will list which alliance color you are on for each match. That's how you will know.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2009, 22:52
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: How to determine which alliance you are on?

The typical way that this is done is through a switch mounted on your robot, which you set based on the alliance that you are on during that match. Your autonomous program then reads in the value of that switch at the start, and determines what camera code to load (or whatever it is that you're doing.)

I am however, interested in finding out if there is a way to get the alliance information from packets available to users from the field. I know this would take a lot of thought and picking through information, but I wonder if it's possible.

But the short answer is to simply use a switch.

Jacob
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2009, 23:00
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: How to determine which alliance you are on?

Take a look at DriverStation::GetAlliance.

From DriverStation.cpp:
Code:
DriverStation::Alliance DriverStation::GetAlliance()
{
	if (m_controlData->dsID_Alliance == 'R') return kRed;
	if (m_controlData->dsID_Alliance == 'B') return kBlue;
	wpi_assert(false);
	return kInvalid;
}
If you look in NetworkCommunication/FRCComm.h, it seems that both alliance and position information is available in the control data packets.

Code:
struct FRCControlData{
...
	char dsID_Alliance;
	char dsID_Position;
...
};
Assuming this works properly, you should be able to use this on the field to determine your alliance color without a physical switch.
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2009, 23:10
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: How to determine which alliance you are on?

There is a simmilar vi in the pending update . It gives alliance color and team position ( which I assume means the driver position)
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2009, 23:13
aeasson aeasson is offline
Registered User
FRC #2435
 
Join Date: Jan 2008
Location: Lawton, ok
Posts: 29
aeasson is an unknown quantity at this point
Re: How to determine which alliance you are on?

Thanks
The C++ code is the type of information I am looking for.
Can I get to similar data within Labview?
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2009, 00:33
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: How to determine which alliance you are on?

Quote:
Originally Posted by PhilBot View Post
There is a simmilar vi in the pending update . It gives alliance color and team position ( which I assume means the driver position)
Quote:
Originally Posted by aeasson View Post
Thanks
The C++ code is the type of information I am looking for.
Can I get to similar data within Labview?
I just installed Update 3 and I see there is now WPI Robotics Library > DriverStation > GetAlliance.vi.
Attached Thumbnails
Click image for larger version

Name:	GetAlliance.png
Views:	51
Size:	14.2 KB
ID:	7235  
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
Reply With Quote
  #9   Spotlight this post!  
Unread 27-01-2009, 00:48
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,747
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: How to determine which alliance you are on?

We are using USER1 switch on the cRIO to switch the alliance. See the picture for an example

Reply With Quote
  #10   Spotlight this post!  
Unread 28-01-2009, 00:56
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,347
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: How to determine which alliance you are on?

Quote:
Originally Posted by MattD View Post
I just installed Update 3 and I see there is now WPI Robotics Library > DriverStation > GetAlliance.vi.
With the new vi you should be able to just replace the "Friend colors" enum with case structure and the "Get Alliance" vi. For testing, just use a switch on the console.
Below is the mod we will try.
Attached Thumbnails
Click image for larger version

Name:	Friend color.jpg
Views:	51
Size:	35.6 KB
ID:	7247  
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #11   Spotlight this post!  
Unread 29-01-2009, 16:30
AlexD744 AlexD744 is offline
Registered User
FRC #0744 (744 Shark Attack)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ft. Lauderdale, FL
Posts: 638
AlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond repute
Re: How to determine which alliance you are on?

Just something I noticed is that a switch is still helpful if you have several different types of autonomous programming depending on how you want to work with your alliance. I know that at Tempest N' Tampa, it would have been a mess if we and Pink only had a start position in the middle. But thankfully, Pink had 7 different autonnomous modes while we had 4. They were all lot more diverse in their modes, but we try.
Reply With Quote
  #12   Spotlight this post!  
Unread 27-01-2009, 07:19
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,072
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: How to determine which alliance you are on?

Quote:
Originally Posted by MattD View Post
Take a look at DriverStation::GetAlliance.

From DriverStation.cpp:
Code:
DriverStation::Alliance DriverStation::GetAlliance()
{
	if (m_controlData->dsID_Alliance == 'R') return kRed;
	if (m_controlData->dsID_Alliance == 'B') return kBlue;
	wpi_assert(false);
	return kInvalid;
}
If you look in NetworkCommunication/FRCComm.h, it seems that both alliance and position information is available in the control data packets.

Code:
struct FRCControlData{
...
	char dsID_Alliance;
	char dsID_Position;
...
};
Assuming this works properly, you should be able to use this on the field to determine your alliance color without a physical switch.
Nice! Thanks for the info.
Reply With Quote
  #13   Spotlight this post!  
Unread 27-01-2009, 20:35
aeasson aeasson is offline
Registered User
FRC #2435
 
Join Date: Jan 2008
Location: Lawton, ok
Posts: 29
aeasson is an unknown quantity at this point
Re: How to determine which alliance you are on?

Thanks for the help
I am downloading update #3 and will try the Get Alliance vi on Thursday.
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
Which Prompt are you using? 114Klutz 3D Animation and Competition 0 10-01-2007 19:32
So Which Competition Are You Going To Loki1989 Chit-Chat 4 13-02-2006 22:46
Which Side are you On? George A. Chit-Chat 16 24-05-2005 21:46
Which field are you watching? Katy Championship Event 24 12-04-2003 13:43
which regional are you submitting at?? Soukup 3D Animation and Competition 4 14-02-2003 18:25


All times are GMT -5. The time now is 19:07.

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