Go to Post We all know that with mechanical systems, once all the noise has leaked out, the system quits (therefore quiet running mechanical systems last much longer :^) - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2005, 00:12
Zalumaskov's Avatar
Zalumaskov Zalumaskov is offline
Premier
no team
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Place
Posts: 12
Zalumaskov is on a distinguished road
Cordic functions...

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?
__________________
I would change the world but I don't have the source code.
  #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,113
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
New Serial Port Driver Kevin Watson Programming 16 09-01-2005 01:56
Overloaded functions jgannon Programming 5 31-12-2004 11:04
White Paper Discuss: 296's CORDIC Math Library CD47-Bot Extra Discussion 5 28-04-2004 20:01
Do you write functions for your code? Max Lobovsky Programming 26 11-03-2004 07:04


All times are GMT -5. The time now is 03:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi