Quote:
|
Originally Posted by Kevin Watson
I've written some code that that will do fixed-point sin() and cos() using an EEPROM look-up table. One piece of code is executed once to create the table, another body of code is used to do fast look-up. Once I write the documentation, I'll release to code for folks to try out.
-Kevin
|
I had some similiar code last year but it got lost in a laptop crash. There's also a pretty good atan2 approximation (or at least it seemed to be) out there if you'd want to include that too. This is what I based my implementation on last year:
http://www.dspguru.com/comp.dsp/tricks/alg/fxdatan2.htm
Matt