Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Win a Hat! (Its a really nice hat, its a really hard problem) (http://www.chiefdelphi.com/forums/showthread.php?t=143812)

Hitchhiker 42 15-02-2016 09:46

Re: Win a Hat! (Its a really nice hat, its a really hard problem)
 
1 Attachment(s)
Here is a picture of our labview implementation of the code for this... It calculates angle based on the distance to the tower (horizontally), the height of the opening, and the velocity of the shooter.
Attachment 20079

It's split up to make it more readable, but is essentially a quadratic formula with three terms that are each calculated from the parameters. There are 2 quad formulas because in a normal parabola, the ball will cross the opening twice (once going up, once going down), so there are two solutions. We take the closer one.

Hope this helped!

Ether 17-02-2016 19:18

Re: Win a Hat! (Its a really nice hat, its a really hard problem)
 
Quote:

Originally Posted by Ether (Post 1539890)

Plot this function with given values of Vo, d, and h vs x=0 to pi/3 radians.

Where it crosses the X axis is the angle solution in radians.

Vo = given initial (launch) speed feet/sec

d = horizontal distance from launch point to goal, feet

h = vertical height from launch point to goal, feet

Here's a detailed explanation of the derivation of the function.




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

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