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?
|
I have some code that I started last Fall that might be of some use. One application, trig_table.c/.h, is only run once to create a semi-permanent table in EEPROM. The second application, trig.c/.h, demonstrates how to lookup a value within the table. The code is designed to work with the EEPROM code on my website:
http://kevin.org/frc. I haven't written the documentation yet and don't know when I'll have the time, so if you have questions, feel free to ask 'em here. You can find the code here:
http://kevin.org/frc/frc_trig.zip.
-Kevin