View Full Version : How to Restart Autonomous Code in Driver Station?
Arbalest007
11-02-2015, 19:12
Hi everyone. Is there a way to restart the autnomous code on the Driver station? Atm I'm reuploading code every time just to restart the autonomous even if I make no changes to the code and I was wondering if you guys have a solution for this. Thks!
Darkseer54
11-02-2015, 19:15
Does disabling then re-enabling not work?
Arbalest007
11-02-2015, 19:15
No, the code seems to just be paused when I disable the robot in Autonomous mode.
Thad House
11-02-2015, 19:16
Hi everyone. Is there a way to restart the autnomous code on the Driver station? Atm I'm reuploading code every time just to restart the autonomous even if I make no changes to the code and I was wondering if you guys have a solution for this. Thks!
What language are you using? If using labview, it should be resetting every time. If using Java or C++, you might have to reset your state machines in Auton Init.
Darkseer54
11-02-2015, 19:21
If you switch to practice mode does that work? (Make sure to configure practice mode in setup first)
mega900997
11-02-2015, 21:16
In the 2nd tab in driverstation, there is an option to restart the robot code. Have you tried that?
TimTheGreat
11-02-2015, 22:14
Disabling and enabling should do the trick. There isn't a need to reset robot code. Try enabling tele-op then autonomous again. Weird that you have this problem.
MamaSpoldi
12-02-2015, 10:30
What language are you using? If using labview, it should be resetting every time. If using Java or C++, you might have to reset your state machines in Auton Init.
Agreed. If you are using C++ or Java what is your robot base class: SampleRobot or IterativeRobot? If it is IterativeRobot you will definitely need to put some code in your AutonomousInit function to reset the state machine. If it is SampleRobot, then you need to reset the state machine at the top of the function (or at the bottom when it is exiting after being disabled).
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.