Re: line follower (please help me)
Posted: 13 Jan 2012, 17:48
Uh, sort of.pepijndevos wrote:...CurrentTick is a timer that is incremented 100 times a second, so it can be used for waiting and timing actions.
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.