Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Physics Equations in Java (http://www.chiefdelphi.com/forums/showthread.php?t=112103)

pimathbrainiac 26-01-2013 14:01

Physics Equations in Java
 
I found this PDF for the physics equations of frisbee flight

http://web.mit.edu/womens-ult/www/sm...ee_physics.pdf

My problem: I want to rearrange the equations so you can input the final x and y positions and output the necessary velocities to get to that distance. I want to then put this in a Java program, like the one in the PDF.

Any help?

kevinvincent 26-01-2013 17:07

Re: Physics Equations in Java
 
Convert this to Java and you're set: https://github.com/anidev/frisbee-calculator :)

pimathbrainiac 26-01-2013 17:40

Re: Physics Equations in Java
 
Quote:

Originally Posted by kevinvincent (Post 1222347)
Convert this to Java and you're set: https://github.com/anidev/frisbee-calculator :)

This is not what I'm looking for... In this program, you must give initial velocity. I want to GET initial velocity from ending X and Y.

Edit: The program does what I'm asking for, but very inefficiantly... It tests several speeds... I don't want a tester, I want a solver.

kevinvincent 26-01-2013 17:53

Re: Physics Equations in Java
 
Why dont you just change the angle of the shooter and keep the velocity constant? Also, the higher the velocity the more linear the frisbee's path. This makes the predicted values much more accurate.

See, the problem with changing velocities to shoot is that when you lower the velocity, you also lower the amount of spin (if you are using a U shaped shooter or a linear one). This causes instability of the frisbee and your equations wont help you there.

If you plan on using a fixed velocity, you can graph the values output from the program and use excel to find a best fit curve (logarithmic). This will simplify your code a lot and will make it more efficient than testing every single angle.

pimathbrainiac 26-01-2013 18:19

Re: Physics Equations in Java
 
My team says fixed angle, though

Ether 26-01-2013 22:35

Re: Physics Equations in Java
 
Quote:

Originally Posted by pimathbrainiac (Post 1222214)

I found this PDF for the physics equations of frisbee flight

http://web.mit.edu/womens-ult/www/sm...ee_physics.pdf

My problem: I want to rearrange the equations so you can input the final x and y positions and output the necessary velocities to get to that distance. I want to then put this in a Java program, like the one in the PDF.

Any help?

The paper sets up the differential equations for the flight of a frisbee. The equations are nonlinear; there is no analytical solution ("formula").

Since there is no analytical solution, the paper presents a numerical solution to the initial value problem.

You wouldn't have the necessary computing resources to do this numerical solution in real time on your robot, let alone the considerably more difficult boundary value problem you are asking.

Even if you could, it would be pointless because you would have to validate the model by doing extensive testing to determine the values of all the coefficients. As long as you have to do that, you might as well just use the test data to determine what launch angles and wheel speeds give you the desired flight paths and then just store that info in a lookup table that your code would use to choose the launch parameters.



theprgramerdude 27-01-2013 04:53

Re: Physics Equations in Java
 
Quote:

Originally Posted by Ether (Post 1222543)
The paper sets up the differential equations for the flight of a frisbee. The equations are nonlinear; there is no analytical solution ("formula").

Since there is no analytical solution, the paper presents a numerical solution to the initial value problem.

You wouldn't have the necessary computing resources to do this numerical solution in real time on your robot, let alone the considerably more difficult boundary value problem you are asking.

Even if you could, it would be pointless because you would have to validate the model by doing extensive testing to determine the values of all the coefficients. As long as you have to do that, you might as well just use the test data to determine what launch angles and wheel speeds give you the desired flight paths and then just store that info in a lookup table that your code would use to choose the launch parameters.



On what basis do you claim these calculations can't be handled in real-time?


All times are GMT -5. The time now is 10:08.

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