View Single Post
  #3   Spotlight this post!  
Unread 12-01-2006, 10:57
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Trig functions and type conversion

Quote:
Originally Posted by Alan Anderson
That's just the nature of arc tangents. You need to determine which quadrant you're in and offset the answer accordingly. Some trig libraries provide an atan2() function that deals with the issue for you.
Hmmm, I assumed since the CORDIC library atan function took two arguments it was an atan2 function, but it appears I assumed incorrectly. Thanks.