View Single Post
  #2   Spotlight this post!  
Unread 29-03-2013, 12:13
Andrew Lobos Andrew Lobos is offline
Registered User
FRC #0225 (TechFire)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Lancaster, PA
Posts: 61
Andrew Lobos is a jewel in the roughAndrew Lobos is a jewel in the roughAndrew Lobos is a jewel in the rough
Re: Autonomus Only Runs One Iteration Issue

Quote:
Originally Posted by wre136 View Post
Does this years autonomous only run itself once and that is it or is there a way to make it loop so we can use state machines in it or at least perform all the steps in a flat sequence box?
Are you using SimpleRobot or IterativeRobot?

If iterative robot, make sure all your code that you want to run in a loop is in autonomousPeriodic()

If simple robot, you may want to wrap all your code in a while loop with the condition isAutonomous() && isEnabled() Note the "i" in "is" is capitalized in C++, lowercase in Java.