Page 2 of 2

Re: line follower (please help me)

Posted: 13 Jan 2012, 17:48
by mattallen37
pepijndevos wrote:...CurrentTick is a timer that is incremented 100 times a second, so it can be used for waiting and timing actions.
Uh, sort of.

CurrentTick() returns the number of ms the NXT has been on. It's is incremented 1000 times per second (so it's a ms count). You can use it for precise time measurement. The NXT FW uses a 32 byte unsigned variable to store the current tick, so it won't overflow until the NXT has been on for over 49 days (49.71026961805556 days).

A really cool thing about the current tick, is that it's universal to the NXT (not just global to the program). That means you can run programs, go through the menus... and it keeps incrementing without resetting.

Re: line follower (please help me)

Posted: 14 Jan 2012, 09:38
by pepijndevos
100 times, what was I thinking… I hope I just missed a zero. Thanks for correcting me, and interesting to know it is global to the NXT.