Thread: Basic Math Help
View Single Post
  #11   Spotlight this post!  
Unread 15-02-2007, 11:05
buddy.smith buddy.smith is offline
Master Control
FRC #1795
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: atlanta
Posts: 20
buddy.smith is an unknown quantity at this point
Re: Basic Math Help

Quote:
Originally Posted by tdlrali View Post
Actually, analog inputs on the RC are 0-1023 (OI is 0-255) unless you use a different ADC. Also, they are not trying to controll a motor, they want to calculate the height of something (arm?)
I stand corrected.

Still, he does not need floating point for this.

(to the OP): Have you ever heard of "fixed point" math? Someone touched on it earlier - if you need .001 precision, then multiply everything by 1000. Keep in mind that at .001 precision, you can measure just one inch with your A/D....

ttyl,

--buddy