Quote:
Originally Posted by mikets
But what is Update_Rate? If it's derived from the period of some periodic loop, you need to verify the real interval of the periodic loop. How did you compute real time?
|
Update_Rate is a define... say 100. hz.
dt = 1/Update_rate;
We use iterative class SetPeriod(dt);
Then we measure cumulative time rather than loop period:
We put this in the loop : time = time + dt :
and simply compare time print out with a stop watch. Since we were looking for a factor of 2 this was accurate enough. We easily checked within a few %.