View Single Post
  #8   Spotlight this post!  
Unread 20-03-2005, 12:02
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: A VERY nice perl script for generating lookup tables.

Quote:
Originally Posted by jdong
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.
In its simplest form, yes. My script, however, incorperates compensation for Victor deadbands and it allows the use of a two curve composite.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan