Thread: Test Code
View Single Post
  #6   Spotlight this post!  
Unread 15-01-2012, 23:50
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Test Code

If you use the teleop or autonomous, the code executes once, because it is not in a loop. By running robot main, the code sits in the actual game code loop.

By pressing the play button, it only disables the startup code, and runs your code in its ram, so when you restart the robot, the code disappears, and no harm is done.
Reply With Quote