|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Look up table
I am programming an omnidrive system and I decided to make look up tables instead of sin and square root functions. Can somebody point me in the right direction as I have never done something like this?
|
|
#2
|
|||||
|
|||||
|
Re: Look up table
Quote:
Code:
rom const float sin[]={(here, list values of sin, from 1-90, with values separated by commas)};
Code:
sin[20]; |
|
#3
|
|||
|
|||
|
Re: Look up table
Thanks, thats exactly what I wanted. I only have one question. I read in a post by kevin that you could post this table in the eeprom. I was wondering if I should try to put it there or where I call my function.
|
|
#4
|
||||
|
||||
|
Re: Look up table
Quote:
-Kevin |
|
#5
|
|||
|
|||
|
Re: Look up table
Speak of the devil -- LOL
Thanks, you just saved me a day of programming. If it's all right I may PM you tomorrow if I come across any glitches. Thanks ps I was looking through the code in notepad and I see that there are 8 and 16 bit functions of sin. Are these what I call and if so do I need to call them both? Last edited by revolution1737 : 09-02-2006 at 01:16. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [RCU]: Kettering Kickoff table | Lisa Perez | General Forum | 0 | 29-08-2005 12:33 |
| 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 |
| Lookup table generation tool | WillyC | Programming | 12 | 15-02-2004 21:01 |
| table corruption... round 2 | Brandon Martus | Announcements | 0 | 18-12-2001 23:57 |