Go to Post Why, yes. I do use Windows, why do you ask? - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2015, 19:12
Arbalest007 Arbalest007 is offline
Registered User
FRC #2496
 
Join Date: Sep 2014
Location: Irvine, California
Posts: 19
Arbalest007 is an unknown quantity at this point
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!
  #2   Spotlight this post!  
Unread 11-02-2015, 19:15
Darkseer54's Avatar
Darkseer54 Darkseer54 is offline
Former Controls Captain and Driver
AKA: Zach Kaplan
FRC #1086 (Blue Cheese)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Richmond, VA
Posts: 137
Darkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of light
Re: How to Restart Autonomous Code in Driver Station?

Does disabling then re-enabling not work?
__________________
2014: IRI on a losing record.
  #3   Spotlight this post!  
Unread 11-02-2015, 19:15
Arbalest007 Arbalest007 is offline
Registered User
FRC #2496
 
Join Date: Sep 2014
Location: Irvine, California
Posts: 19
Arbalest007 is an unknown quantity at this point
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.
  #4   Spotlight this post!  
Unread 11-02-2015, 19:16
Thad House Thad House is offline
Volunteer, WPILib Contributor
no team (Waiting for 2021)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Thousand Oaks, California
Posts: 1,106
Thad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond reputeThad House has a reputation beyond repute
Re: How to Restart Autonomous Code in Driver Station?

Quote:
Originally Posted by Arbalest007 View Post
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.
__________________
All statements made are my own and not the feelings of any of my affiliated teams.
Teams 1510 and 2898 - Student 2010-2012
Team 4488 - Mentor 2013-2016
Co-developer of RobotDotNet, a .NET port of the WPILib.
  #5   Spotlight this post!  
Unread 11-02-2015, 19:21
Darkseer54's Avatar
Darkseer54 Darkseer54 is offline
Former Controls Captain and Driver
AKA: Zach Kaplan
FRC #1086 (Blue Cheese)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Richmond, VA
Posts: 137
Darkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of light
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)
__________________
2014: IRI on a losing record.
  #6   Spotlight this post!  
Unread 11-02-2015, 21:16
mega900997's Avatar
mega900997 mega900997 is offline
Registered User
FRC #0263 (Sachem Aftershock)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Ronkonkoma
Posts: 58
mega900997 is on a distinguished road
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?
__________________
2015
Suffield Shakedown Winners & Most Points Scored
South Florida Regional 6th Seed, #5 Alliance Captains, Regional Winners w/ 2383 & 386, Innovation in Control Award
NY Tech Valley Regional 5th Seed, QF, Excellence in Engineering Award
SBPLI Long Island Regional 4th Seed, Finalists

Hopper Division 14th Seed, QF
  #7   Spotlight this post!  
Unread 11-02-2015, 22:14
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 238
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
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.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
  #8   Spotlight this post!  
Unread 12-02-2015, 10:30
MamaSpoldi's Avatar
MamaSpoldi MamaSpoldi is offline
Programming Mentor
AKA: Laura Spoldi
FRC #0230 (Gaelhawks)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Shelton, CT
Posts: 307
MamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant futureMamaSpoldi has a brilliant future
Re: How to Restart Autonomous Code in Driver Station?

Quote:
Originally Posted by Thad House View Post
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).
__________________
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 21:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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