Go to Post Our team's worst moment was the 13 years of FIRST's existence in which it did not exist. - Joe G. [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 21-01-2004, 19:54
Guest
 
Posts: n/a
Re: Needing A header file

Quote:
Originally Posted by jweric
Their is a problem with that. If I cant do an Inverse trig function, I cannot find the angle.
...
But the formula I would be using for one of the pwms is:

PWM = p1_y - sin(1.4172 * p1_x - 127)
You can use the approach I described above for inverse sine and sine.

Anyway, why are you using floating point? Are you sure you want to do that? It slows the processor down, and if you'll be using "true" trig functions, you'll slow it down even more. (That's another point where lookup tables help. They're moderately fast, b/c pointer arithmatic is much faster than floating-point calculation). I'd suggest sticking with an integer value (maybe in degrees) for the argument to sin().
 


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
First Logo as a CAD file jrgrim12 Inventor 4 14-02-2003 11:42
The need for File Maker Pro 5 Dev. Edition archiver 2000 1 23-06-2002 22:50
Dashv2.ocx dependency file now available archiver 2000 0 23-06-2002 22:00
Improving PBASIC: Request for Comments Greg Ross Programming 19 16-02-2002 22:14


All times are GMT -5. The time now is 09:21.

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