Quote:
Originally Posted by Brad Voracek
Ahh, that makes a lot of sense. Thanks.
|
Just FYI, you can create that table, and read from it using the EEPROM code at
http://kevin.org/frc.
Edit: I also wrote some example code that creates an 8- and/or 16-bit sine table in EEPROM with one piece of code and then allows you to quickly do a sin() or cos() lookup using another piece of code (stuff written to EEPROM is permanent until you erase it). I haven't written any formal documentation yet, but I think the code is fairly readable. The code can be found here:
http://kevin.org/frc/frc_trig.zip.
-Kevin