![]() |
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! |
Re: Win a Hat! (Its a really nice hat, its a really hard problem)
Quote:
|
| 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