Hi folks,
In my code I can Task_sleep() to block for 450 microseconds, but my Task delay appears to hover between ~398 microseconds and ~501 microseconds. If I change the delay to, say, ~X microseconds, the delay hovers in about the same range. I guess Task_sleep() blocks/works relative to the time at which it is called.
I also tried using a for loop, as well Clock_getTicks() to keep track, but these two methods jitter more than with Task_sleep(). Unless I'm using Clock_getTicks() wrong?
Is there a way to make my delay more accurate and decrease this jitter? Any other delay functions that work?
Thanks