View Single Post
  #4   Spotlight this post!  
Unread 20-03-2005, 07:33
jdong jdong is offline
Linux Nerd
AKA: John D
#0245 (Adam-Bots)
Team Role: Programmer
 
Join Date: Apr 2004
Location: Rochester, MI
Posts: 98
jdong will become famous soon enoughjdong will become famous soon enough
Re: A VERY nice perl script for generating lookup tables.

To make a drive curve, you don't need any more code than:

echo '{'

for loop:
print CurveFunction(x),','

echo '};'


As far as the curves, a quadratic curve is simply scaling a quadratic function f(x)=x^2 such that f(127)=255.
__________________
John Dong
Co-Captain, Webmaster / Programmer
Team 245 -- Rochester Adams Robotics