![]() |
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?
|
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]; |
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.
|
Re: Look up table
Quote:
-Kevin |
Re: Look up table
Speak of the devil -- LOL :D
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? |
| All times are GMT -5. The time now is 01:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi