Go to Post There are a lot of great teams that impress me, but four that really stand out... Our team doesn't want to beat these teams, we want to be these teams. - Mark Holschuh [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-03-2013, 18:01
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Autonomous auto stopping

At regionals does fms enable autonomous then disable disable autonomous? So that if you had an autonomous 20 secs long only 15 secs of it will execute, or will the whole thing execute and you would get a penalty?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-03-2013, 18:47
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Autonomous auto stopping

Nope. FMS just tells your program "Hey, your teleop now!". Your program doesn't need to respond in any way. Your robot could be fully autonomous if you really wanted to.
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-03-2013, 18:51
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: Autonomous auto stopping

So if the autonomous was 20 secs only 15 would be executed then.
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2013, 19:03
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Autonomous auto stopping

Quote:
Originally Posted by Merfoo View Post
So if the autonomous was 20 secs only 15 would be executed then.
No. Autonomous (at least in Java) will run until it is finished. There is no way a method's execution can be "stopped".
__________________
All opinions are my own.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-03-2013, 19:11
Merfoo's Avatar
Merfoo Merfoo is offline
Registered User
FRC #0955 (CV Robotics)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2012
Location: America
Posts: 48
Merfoo is an unknown quantity at this point
Re: Autonomous auto stopping

Ok thanks!
Reply With Quote
  #6   Spotlight this post!  
Unread 10-03-2013, 19:38
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Autonomous auto stopping

Would just like to point out that if you're using the Command-based template there is a line in the RobotMain class under TeleopInit() that cancels the autonomous command. If you want it to keep running, delete that line.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #7   Spotlight this post!  
Unread 10-03-2013, 22:27
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Autonomous auto stopping

If you're using the Iterative template as it's intended (meaning periodic() doesn't hang), then your autonomous mode code will be automatically stopped when you leave autonomous mode. In the Command-based setup, since the Scheduler handles running everything, you have to make sure you cancel any Commands if you don't want them to keep running (the default template does this). SimpleRobot gives absolute control, and it makes it your responsibility as the programmer to check for the current mode and exit when necessary.
__________________
I code stuff.
Reply With Quote
  #8   Spotlight this post!  
Unread 11-03-2013, 16:26
CodeYeti's Avatar
CodeYeti CodeYeti is offline
FRC Addict
AKA: Matt Coffin
FRC #0662 (Rocky Mountain Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Colorado
Posts: 81
CodeYeti is an unknown quantity at this point
Re: Autonomous auto stopping

Quote:
Originally Posted by joelg236 View Post
No. Autonomous (at least in Java) will run until it is finished. There is no way a method's execution can be "stopped".
Well, if you really wanted to design it this way, then you could have things running in threads, then interrupt them, or set a boolean and have them return. That was part of my team's architecture last year.
Reply With Quote
Reply


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 10:37.

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