Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Best launch angle and velocity: HANDS DOWN.. (http://www.chiefdelphi.com/forums/showthread.php?t=126690)

Symph 19-02-2014 22:43

Best launch angle and velocity: HANDS DOWN :::REVISED:::
 
1 Attachment(s)
STEMpunk’s shooter, optimized with applied mathematics:
Ever wonder what the single greatest, most spectacular, ABSOLUTE BEST angle and velocity to shoot your game piece at is?
Well, for us, it’s 36 degrees at 31.62 feet per second.

(From ~43.3in above the ground. Giving us a 13.5 ft thick strip of the playing field to make the shot on.)

If you want to optimize your robot like we did ours, for 2014 or any other year involving a goal and a projectile, I would encourage you to read on and find out how got these numbers.
A week into the build season our robot was well past the first basic stages of design. Our team, having decided on the layout of our drivetrain (utilizing an unusual application of the mechanum drive) and our shooter, (a virtually one piece rig functioning as an all in one, passing, shooting, ground/ air pickup mechanism) needed to know now, what results our shooter should produce to classify as a “good shooter”.
The algorithms we contrived to give us this definition, if utilized properly, should afford most teams with the capability to find that one combination of angle and velocity giving them the single greatest, most spectacular, ABSOLUTE BEST strip of the playing field to make the shot from. You can find our results above. This is how we did it:

(See "MathProofCondensed.docx" attachment.)

No doubt you will want someone who enjoys rigorous mathematics suiting these calculations to your own robot, but it’s worth the work, as this not only draws a bold line between a "bad shooter" and a "good shooter", but also marks the difference between a "good shooter" and a "perfect shooter".

Symph 20-02-2014 15:02

Re: Best launch angle and velocity: HANDS DOWN..
 
Quote:

Originally Posted by Uriah (Post 1346187)
Ether,

Not only is he inspired by it, he is driven by it. He's a 16 year old homeschool kid that taught himself calculus. He's a very bright young man and STEMpunk is lucky to have him for another year!

Awh, thanks man! Q^Q You are a real bro, you know that?

Symph 20-02-2014 15:06

Re: Best launch angle and velocity: HANDS DOWN..
 
Quote:

Originally Posted by Ether (Post 1345586)
You forgot to edit your original post. It still says "42.5 feet per second" and "13.5" ft scoring range.



Looks like my original post is now too old for me to edit. :(

matthewdenny 20-02-2014 15:22

Re: Best launch angle and velocity: HANDS DOWN..
 
According to the model we are using there is a strange occurrence:

From a height of 3.5'
And an angle of 35 deg.
And a ball speed of 35 fps

There is a pretty decent window.

Not quite perfect, but it would have been a good design point to start at.

Ether 20-02-2014 17:07

Re: Best launch angle and velocity: HANDS DOWN..
 
1 Attachment(s)
Quote:

Originally Posted by matthewdenny (Post 1347014)
According to the model we are using

Is it a simple parabolic model (like Gabe is using)? Or does it include air drag?

For a simple parabolic trajectory with those launch parameters, the max height of the top of the ball is 10.8 feet*, which exceeds the top of the goal.

* assuming you meant that the 3.5' launch height was the top of the ball, rather than the center


Chris is me 20-02-2014 19:43

Re: Best launch angle and velocity: HANDS DOWN..
 
Great work on the kinematics, though the pedant in me objects to absolute terms like "best" and "ideal". There are a variety of factors at play driving the shot of a ball.

Now, for extra credit, using reasonable assumptions for energy transfer, figure out how much spring potential energy your team's system needs to make this shot. :)

One thing I didn't see, but I'm too busy to compute - for what range of distances is the ball able to go in the goal?

matthewdenny 20-02-2014 19:55

The model we are using includes air drag (but not spin).

matthewdenny 20-02-2014 20:10

Re: Best launch angle and velocity: HANDS DOWN..
 
Ether, 3.5' was the bottom of the ball.

Ether 20-02-2014 20:36

Re: Best launch angle and velocity: HANDS DOWN..
 
Quote:

Originally Posted by matthewdenny (Post 1347180)
The model we are using includes air drag (but not spin).

Some follow-up questions, if I may?

- are you using a linear or quadratic air drag model?

- how did you validate the model? i.e. How did you determine the proper value for the drag coefficient for this year's game piece?



Ether 20-02-2014 20:44

Re: Best launch angle and velocity: HANDS DOWN..
 
Quote:

Originally Posted by Chris is me (Post 1347170)
One thing I didn't see, but I'm too busy to compute - for what range of distances is the ball able to go in the goal?

Check out post#13.




Ether 20-02-2014 20:52

Re: Best launch angle and velocity: HANDS DOWN..
 


I put together a few observations about parabolic trajectories in a short 2-page paper here.

I'll be adding more as time permits.




matthewdenny 20-02-2014 21:06

Re: Best launch angle and velocity: HANDS DOWN..
 
1 Attachment(s)
Some follow-up questions, if I may?

- are you using a linear or quadratic air drag model?

- how did you validate the model? i.e. How did you determine the proper value for the drag coefficient for this year's game piece?


I used a terminal velocity of 36fps, which someone on here had obtained. To double check it I translated it to a Cd of .58, which given the calculated Reynolds number, corresponded to a NASA page relating drag on a sphere to Cd.

Once I had Cd, I used .01sec intervals starting from the launch position, Calculate Vx, Vy, and Drag Force, I use Drag force and gravity to adjust the numbers for the new angle of motion and Velocity, and repeat to trace the arc.

Here is my Spread Sheet. See the sheets for 'Flight Calc' and 'Flight Path' to get all the details. (You can check out the other sheets too if the interest you)

Ether 22-02-2014 14:53

Re: Best launch angle and velocity: HANDS DOWN..
 
2 Attachment(s)
Quote:

Originally Posted by matthewdenny (Post 1347230)
Here is my Spread Sheet. See the sheets for 'Flight Calc' and 'Flight Path' to get all the details. (You can check out the other sheets too if the interest you)

Nice job on the spreadsheet. Thanks for posting it.

Quote:

Originally Posted by matthewdenny (Post 1347230)
I used .01sec intervals starting from the launch position, Calculate Vx, Vy, and Drag Force, I use Drag force and gravity to adjust the numbers for the new angle of motion and Velocity, and repeat to trace the arc.

May I offer a suggestion? The way you implemented the integration appears to have accuracy/stability issues, which could easily be fixed.

All the plots below are based on the parameters in your spreadsheet (launch speed = 35 ft/sec, launch angle = 35 deg,
g = 32.2 ft/sec2, terminal velocity = 36 ft/sec, ball weight =3 lbf etc):
Plot1 shows your results compared to the true* flight path.

Plot2 shows your model with the time step changed from 0.01 to 0.005. Notice the improvement.

Plot3 shows your model with the time step changed to 0.003. It is beginning to diverge.

Plot4 shows your model with the time step changed to 0.002. It is very much off track.

Plot5 shows what is possible with a carefully-implemented Euler method at 0.01 timestep

Plot6 shows Euler with a 0.002 timestep.

Plot7 shows Trapezoidal integration of X and Y at 0.01 timestep. Notice you can't even see the red.

Trapezoidal integration is easy to do in Excel for problems of this type. I can write a short paper explaining how to do it if anyone is interested.


*mathematically "true" based on the model used. I computed the true flight path using second-order Runge-Kutta at 0.01 time step. With RK2, smaller time steps are not necessary for this application as they yield virtually identical results: See PlotRK

Ether 23-02-2014 12:13

Re: Best launch angle and velocity: HANDS DOWN..
 
1 Attachment(s)

By the way, switching gears for a moment from math to real-world engineering, here's a comparison between the parabolic trajectory and the air_drag trajectory, assuming terminal velocity of game piece is 36 ft/sec and air drag is proportional to the square of velocity.

Does anyone else have test data they'd be willing to share, that could be used to confirm the air drag?


matthewdenny 23-02-2014 17:50

Re: Best launch angle and velocity: HANDS DOWN..
 
I found the calculations for sphere terminal velocity here:

http://hyperphysics.phy-astr.gsu.edu/hbase/airfri2.html

it seems to mesh with the previous numbers we used for Vterm.

Ether, I'm still digesting the plots, and learning about the methods. I'll have more to say once I learn more.


All times are GMT -5. The time now is 22:05.

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