|
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
|