|
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.
|