View Single Post
  #1   Spotlight this post!  
Unread 08-03-2004, 20:13
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Simple Autonomous Mode Example

A NOTE TO ANYONE USING THE ABOVE CODE:

I made a slight error in the definitions of the SECS_TO_TICKS and MSECS_TO_TICKS macros. You'll need to change them to the following:

Code:
#define SECS_TO_TICKS(a)	( ((long)(a)) * 10000 / 262 )
//And milliseconds too:
#define MSECS_TO_TICKS(a)	( ((long)(a)) * 10 / 262 )
otherwise, the values will overflow for a value greater than about 3 seconds.
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)