Utlizing the Driver Station to Assist Autonomous Mode
In the FRC Driver Station (under the Operation tab), is a Team Station drop down menu. The options in this drop down menu include the positions such as Red 1 and Blue 2. I am assuming that this enables to driver to input the position of his or her robot?
Also, in the Autonomous Independent framework, a Get Alliance vi has been provided and used. The vi can return the team alliance and field position of the robot.
Since our team is planning on writing a different code for each field position, we would like to know if there is a way to link these two? For example, is there a way to program our autonomous so that if the driver inputs 'Red 3' in the driver station, the code that we designate 'Red 3' will run?
If that is not an option, how would you reccomend handling various codes that depend on the robot's position? Or are you all writing a general code that could work well in all positions?
Thank you! Hope I've made sense!
|