View Single Post
  #7   Spotlight this post!  
Unread 26-01-2011, 22:05
CodeMonkeyMatt CodeMonkeyMatt is offline
Registered User
FRC #2605
 
Join Date: Jan 2011
Rookie Year: 2008
Location: WA
Posts: 46
CodeMonkeyMatt is on a distinguished road
Re: programming KOP line trackers

Something along the lines of this:

Code:
int count = 0;

while(IsOperatorControl())
{
   readInput(); //However you get the data
   count++;

   if(count >= 10)
   {
      count = 0;
      printData();
   }
   ...
}
Reply With Quote