View Single Post
  #4   Spotlight this post!  
Unread 07-08-2005, 10:46
neilsonster's Avatar
neilsonster neilsonster is offline
Registered User
AKA: Andrew Neilson
FRC #0772 (Sabre Bytes)
Team Role: College Student
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 188
neilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to allneilsonster is a name known to all
Send a message via MSN to neilsonster
Re: Strange products upon running code...

Quote:
Originally Posted by Mike Betts
Andrew,

Try:

unsigned int WheelCirc = ((long) WHEEL_RAD * 710) / 113;

Note that the above will still fail if WHEEL_RAD gets too large...

Mike
That worked! Thanks!! *looks at your signature* I'll keep the 355/113 trick in mind . One question though, what happens when you put the (long) in front of WHEEL_RAD?
__________________
Andrew Neilson - Team 772 Alumnus
University of Waterloo Computer Science, Class of 2010