View Single Post
  #6   Spotlight this post!  
Unread 26-09-2007, 20:43
Kelly Kelly is offline
Registered User
FRC #1418
 
Join Date: Jan 2007
Location: VA
Posts: 78
Kelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud ofKelly has much to be proud of
Re: help with large loop

With a for loop that large, it sounds like you're trying to create some sort of time delay. Assuming you're writing code for the robot controller, remember that your code is already running in a loop. To create a time delay write code like this:

int counter
.
.
.
while(true)//main loop
{
counter++;
if counter<largeNumber
{
do nothing
}
else
{
do stuff
}
}
If this is for a side project, disregard this comment entirely.