Go to Post You can't guarantee outcomes -- only effort. If your team did its best, be satisfied. - Rick TYler [more]
Home
Go Back   Chief Delphi > Other > Math and Science
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
  #1   Spotlight this post!  
Unread 07-06-2004, 18:22
indieFan indieFan is offline
RoboDox and LVHS - Missing you!
FRC #5941
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Seattle (was SoCal, then SA,TX))
Posts: 382
indieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond reputeindieFan has a reputation beyond repute
Calc. Triangle Angle or Side Based on Ellipses?

Hi Everyone,

I'm currently working on coding a program for a CNC using variables. I've run into a significant stumbling block regarding the math, however.

I am taking two ellipses that have every point the same distance apart. I then have a known starting angle; and, because the ellipses are to be symmetric about the x-axis, the finishing angle. Once the program reaches the finishing angle on the outer ellipse, it is to move inward at the same y position to the inner ellipse. (Essentially, it is cutting out the letter C.)

Here are the questions:
1. How does one tell when one is on the inner ellipse?
2. Is it possible to calculate the new x length given only the y dimension?
3. Is it possible to calculate the new angle given only the y dimension?

My test numbers (in inches) have been:
Major (y) axis: 6; Minor (x) axis: 4; start angle: 15; distance between ellipses: 0.5

If it still isn't clear, please let me know.

Any help would be appreciated,
indieFan

P.S.- I may have figured it out:

Knowing that the y-distance from the x axis is -0.5275 at the end, and that the total y length from center to end of the axis is 2.5, then the new angle can be calculated using asin(-0.5275/2.5)=theta. Theta is equal to -12.18 degrees. Given theta and the y length, the x distance can now be calculated since the distance from the center to the x-axis is known.

The new problem is how to calculate an asin when there is no function available in the programming language. :-(

P.P.S.- I think I finally understand the arcsin(x)=arctan(x/sqrt(1-x^2)) equation which is easy to program.

Last edited by indieFan : 08-06-2004 at 12:43.
Reply With Quote
 


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
Angle from X,Y Astronouth7303 Programming 18 19-04-2004 22:08


All times are GMT -5. The time now is 07:35.

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