View Single Post
  #2   Spotlight this post!  
Unread 08-01-2008, 20:59
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Trig functions in C18 3.10

Quote:
Originally Posted by dmlawrence View Post
I am aware that numerous trig lookup tables and algorithms are available for the RC. However, as far as I can tell, none of them are compatible with Kevin Watson's new code.
Can you point me toward code that doesn't work? I'll have a look to see what it would take to get it working.

Quote:
Originally Posted by dmlawrence View Post
Does anyone know of a method to calculate trig functions that works under the new version of C18?
Unless you need to do hundreds of trig calculations per second, I would just go ahead and use the built-in functions. If you're the adventurous type and just want to do it yourself, you could very easily get my eeprom code code moved over and then use the trig table generation and lookup code I wrote a few years back.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org