Go to Post a robot is never finished... It can always be redone and improved. - EricVicenti [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2006, 16:23
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
Lookup Table Generator GUI

I had some spare time yesterday (gasp!) and decided to whip up a GUI for lookup table generation. (We seem to be making a lot of those.) Manually editing and compiling the Java app I had whipped up earlier in the season was getting annoying, so I decided to make an end to that.

A screenshot is attached (running under Linux). Note that this program is a little abnormal to install, since it requires either Mono or the .NET Framework v1.1. If using the .NET Framework (which I would reccomend under Windows), the Gtk# libraries. (Sorry folks, but I didn't have time to install VS.NET, and there was no way I was laying the thing out by hand. Plus I'm a Linux geek. 8)) So here's the instructions for getting the respective libraries:


To run under Windows:
.NET Framework v1.1 and Gtk# runtime are required. The .NET framework is
available here:
http://www.microsoft.com/downloads/d...displaylang=en
Gtk# runtime can be obtained here:
http://forge.novell.com/modules/xfmo...?gtks-inst4win
(Only the runtime is required, but if you have the .NET SDK installed I would
reccomend going for the Gtk# SDK as well.)
Alternatively you can go for Mono, just like under Linux. (See below for
details). However, I would stick to the .NET Framework, since it supports more
applications.

To run under Linux:
Install Mono and all of it's dependancies. Mono SHOULD be in your distribution's
repositories, but if it is not it can be obtained here:
http://www.mono-project.com/Downloads


And now the program:
Binary (zip):
http://www.hoojamomma.com/robotics/l...en-0.1-bin.zip
Binary (tarball):
http://www.hoojamomma.com/robotics/l...0.1-bin.tar.gz
Source (tarball):
http://www.hoojamomma.com/robotics/l...Gen-0.1.tar.gz
Also note that the binary zip and a screenshot are attached to this post.


See the README file for more details. Please try it out and tell me how you like it! (Yeah, I know, a little late in the build season for this, right? But maybe it'll help you with some last-minute changes. Those always seem to come up.)

-Rajeev Sharma
Attached Thumbnails
Click image for larger version

Name:	Screenshot-LUT Generator.png
Views:	399
Size:	38.5 KB
ID:	3984  
Attached Files
File Type: zip LUT_Gen-0.1-bin.zip (15.1 KB, 98 views)
  #2   Spotlight this post!  
Unread 14-02-2006, 16:32
aaeamdar's Avatar
aaeamdar aaeamdar is offline
Post-A-Holic
AKA: Paul Dennis
FRC #1719 (The Umbrella Corp)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Baltimore, MD
Posts: 231
aaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant futureaaeamdar has a brilliant future
Re: Lookup Table Generator GUI

I don't really get it. A GUI for lookup tables? That shows graphs?

Confused,
Paul Dennis
  #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?
  #4   Spotlight this post!  
Unread 14-02-2006, 18:38
6600gt's Avatar
6600gt 6600gt is offline
Registered User
AKA: Lohit
FRC #0226 (Hammerhead)
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Troy, MI
Posts: 221
6600gt is a jewel in the rough6600gt is a jewel in the rough6600gt is a jewel in the rough
Re: Lookup Table Generator GUI

Thanks, this is going to save me a lot of time.
  #5   Spotlight this post!  
Unread 15-02-2006, 21:37
P1h3r1e3d13's Avatar
P1h3r1e3d13 P1h3r1e3d13 is offline
Unregistered User
FRC #0295
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: San Diego/Granite Bay
Posts: 46
P1h3r1e3d13 is an unknown quantity at this point
Thumbs up Re: Lookup Table Generator GUI

Beautiful. Thank you so much, R4v3! Be my valentine!
  #6   Spotlight this post!  
Unread 15-02-2006, 22:10
Andrew Blair's Avatar
Andrew Blair Andrew Blair is offline
SAE Formula is FIRST with Gasoline.
FRC #0306 (CRT)
Team Role: Alumni
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Corry
Posts: 1,193
Andrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond reputeAndrew Blair has a reputation beyond repute
Send a message via AIM to Andrew Blair Send a message via Yahoo to Andrew Blair
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
Basically, if I may elaborate, it takes a math function of any sort, and generates the applicable, integer values, in hexadecimal, into a lookup table of your choice. Eliminates syntax errors and you having to type in 5000 values by hand... Looks good! (Wishing I had this two weeks ago...)
__________________
Reading makes a full man, conference a ready man, and writing an exact man.
-Sir Francis Bacon

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
-Albert Einstein
  #7   Spotlight this post!  
Unread 15-02-2006, 22:22
phrontist's Avatar
phrontist phrontist is offline
Proto-Engineer
AKA: Bjorn Westergard
FRC #1418 (Vae Victus)
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Falls Church, VA
Posts: 828
phrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond reputephrontist has a reputation beyond repute
Send a message via AIM to phrontist
Re: Lookup Table Generator GUI

Hmmm... this is cool.

Wouldn't it be neat if someone wrote a program to generate a lookup table based on a drawn graph? You could just sketch the curve, tell it how precise to be, how many entries the table should have, what the range of values should be, etc. and it would generate it. Espescially nice because you could visually tweak something. If you really want to go the extra mile, add the ability to start with a mathematical function and then drag points around.

I may just do this in the offseason...
__________________

University of Kentucky - Radio Free Lexington

"I would rather have a really big success or a really spectacular crash and failure then live out the warm eventual death of mediocrity" - Dean Kamen
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sortable table for use on webpages Elgin Clock Website Design/Showcase 2 22-05-2005 17:09
full table? Shlomi32 General Forum 2 27-04-2005 10:03
Table Tennis Players, Anyone PEKMAN Championship Event 0 19-04-2005 21:01
A VERY nice perl script for generating lookup tables. Validius Programming 11 31-03-2005 10:15
Lookup table generation tool WillyC Programming 12 15-02-2004 21:01


All times are GMT -5. The time now is 01:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi