|
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
|