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