Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How to Restart Autonomous Code in Driver Station? (http://www.chiefdelphi.com/forums/showthread.php?t=134385)

Arbalest007 11-02-2015 19:12

How to Restart Autonomous Code in Driver Station?
 
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

Re: How to Restart Autonomous Code in Driver Station?
 
Does disabling then re-enabling not work?

Arbalest007 11-02-2015 19:15

Re: How to Restart Autonomous Code in Driver Station?
 
No, the code seems to just be paused when I disable the robot in Autonomous mode.

Thad House 11-02-2015 19:16

Re: How to Restart Autonomous Code in Driver Station?
 
Quote:

Originally Posted by Arbalest007 (Post 1442112)
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

Re: How to Restart Autonomous Code in Driver Station?
 
If you switch to practice mode does that work? (Make sure to configure practice mode in setup first)

mega900997 11-02-2015 21:16

Re: How to Restart Autonomous Code in Driver Station?
 
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

Re: How to Restart Autonomous Code in Driver Station?
 
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

Re: How to Restart Autonomous Code in Driver Station?
 
Quote:

Originally Posted by Thad House (Post 1442116)
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).


All times are GMT -5. The time now is 01:40.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi