Go to Post FIRST is not all about the competitions. FIRST is about what you learn to get to wherever you got to, whether that be first seed or last. - StephLee [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 23-02-2015, 22:28
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Autonomous repeating

Our autonomous mode is working essentially how we want it to, but every time it gets to the end of the list of us telling the robot what to do, it goes back to the top and starts over. We've just put a delay at the end to give us time to disable after it finishes, but we're wondering if this is normal and if not how do we fix it?
Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2015, 06:33
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Autonomous repeating

Can't help you without code, but I'd imagine it would like something like this

Code:
boolean autonEnabled = true;
public void autonomousInit(){
    autonEnabled = true;
}
public void autonomosPeriodic(){
    if(!autonEnabled) return;
    //doStuff();
    if(autonDone) autonEnabled = false;
}
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2015, 10:06
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: Autonomous repeating

Thanks. That fixed the problem. I thought that would cause another problem, but it didn't.
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 08:35.

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