View Single Post
  #4   Spotlight this post!  
Unread 14-02-2008, 14:05
RyanW RyanW is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2007
Location: MD
Posts: 40
RyanW has a spectacular aura aboutRyanW has a spectacular aura about
Re: Autonomous and Operator Control modes

If your code is taking too long, you'll get the Code Error red light of death on your robot, and it'll stop running. Believe me, you'll know. So if it's working okay when you test it, don't worry.

Whether or not you need a While loop depends on whether or not you're using EasyC. The Default Code and Kevin's code, to the best of my knowledge, call the teleoperated and hybrid method repeatedly on their own, and a while loop will mess them up. I don't know for sure about EasyC, but our team is using WPILib, which should work similarly. With WPILib, Autonomous gets called once, and Teleoperated repeatedly, so you would only need the while loop for autonomous.