View Full Version : 2 Autonomous Codes for Competition
Kevin Pai
22-02-2016, 20:43
Hello everyone, our team was wondering if we could switch between 2 autonomous codes before each round of the competition depending on what defenses that we want to breach. If so, how do you switch between the 2 codes on the driver station without using the USB to Roborio cord?
Answer of switching auto codes:
Nothing prohibits this.
Answer to the rest of the question: You could use a switch on the robot, a switch on the driver's station, and have your code read what the switch is set to right at the start of auto.
https://wpilib.screenstepslive.com/s/3120/m/7932/l/81109-choosing-an-autonomous-program-from-smartdashboard
We are using a Sendable Chooser, which you can learn about in the link above. Essentially, you can add different auto options, and then in the setup before a match, you choose whatever option you want from the SmartDashboard. Hope this helps! :)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.