View Single Post
  #2   Spotlight this post!  
Unread 13-02-2005, 00:58
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Cordic functions...

Quote:
Originally Posted by Zalumaskov
I'm using the Cordic trig functions but I get weird values...

sin(0) and cos(0) both give me -4, you see my problem; what am I doing wrong?
How are you checking the return values? It could be something as simple as trying to printf a non-int using the %d format specifier, giving a bad answer onscreen while the value is perfectly fine.