View Single Post
  #1   Spotlight this post!  
Unread 16-02-2007, 10:53
michniewski michniewski is offline
Registered User
FRC #1353
 
Join Date: Jan 2007
Location: Canada
Posts: 6
michniewski is an unknown quantity at this point
Question Trig Lookup Table

I've seen the trig lookup table function posted by Kevin Watson (this one: http://kevin.org/frc/frc_trig.zip ). I'm just wondering if anybody has an idea on how to implement an inverse cosine function?

My real problem is controlling 2 angles which have to be calculated. I have all the calculations, but they are quite involved (lots of inverse cos, sqrt, and squaring). I've ruled out a lookup table for the various combinations of these two angles. There are two independent variables that are controlled by the robot driver, and two calculated angles (Im pretty sure the lookup table for that would be way too huge).

Thus I return to my original question: how to implement an inverse cosine lookup table function? Perhaps using kevin watson's code posted above?

Thanks,

Michael Michniewski

p.s see my new post below
__________________
- Michael Michniewski
Team 1353, The Spartans



Greater Toronto Regional
- look for the Spartan mascot

Last edited by michniewski : 17-02-2007 at 10:39.