Quote:
|
Originally Posted by revolution1737
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?
|
Hi, well, basically, you would have something like:
Code:
rom const float sin[]={(here, list values of sin, from 1-90, with values separated by commas)};
and then, you would get the sin of the angle, lets say theta==20, by calling:
Hope this helps,