|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||||
|
|||||
|
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...
|
|
#3
|
|||||
|
|||||
|
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.
|
|
#4
|
|||||
|
|||||
|
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 |
|
#5
|
||||
|
||||
|
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;
}
Code:
struct FRCControlData{
...
char dsID_Alliance;
char dsID_Position;
...
};
|
|
#6
|
|||||
|
|||||
|
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)
|
|
#7
|
|||
|
|||
|
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? |
|
#8
|
||||
|
||||
|
Re: How to determine which alliance you are on?
Quote:
Quote:
|
|
#9
|
||||
|
||||
|
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
![]() |
|
#10
|
|||||
|
|||||
|
Re: How to determine which alliance you are on?
Quote:
|
|
#11
|
|||
|
|||
|
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. |
|
#12
|
||||
|
||||
|
Re: How to determine which alliance you are on?
Quote:
Below is the mod we will try. |
|
#13
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |