View Single Post
  #3   Spotlight this post!  
Unread 14-02-2006, 16:51
teh_r4v3 teh_r4v3 is offline
Registered User
AKA: Rajeev Sharma
FRC #1511 (Rolling Thunder)
Team Role: Student
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Penfield, NY
Posts: 15
teh_r4v3 is on a distinguished road
Send a message via AIM to teh_r4v3
Re: Lookup Table Generator GUI

Quote:
Originally Posted by aaeamdar
I don't really get it. A GUI for lookup tables? That shows graphs?

Confused,
Paul Dennis
No, no graphs. Let's say that you want a lookup table for tangent (just like in the screenshot I attached). You want input values of 0-255 in increments of 1, with 0 being itself and 255 being 2pi. (This program uses radians, btw.) So your function would be:
f(x) = tan((x/255) * (2pi))
So you enter that function, click generate, and bam, there's your lookup table.
Or, just to illustrate my point, you could do this:
f(x) = x
And it would generate a lookup table of {0, 1, 2, 3, 4, ...... 0xFE, 0xFF}.

Sorry if I've been unclear, or I'm writing this too fast... I can try to explain it again if you don't understand, or you might want to download the program and play around with it a little.
__________________
Rajeev Sharma

Team 1511 Rolling Thunder

hoojamomma?