Go to Post Seeing a bunch of teams from Indiana and probably Michagin competing at the same time.... If I wanted to see that, I'd just go to the Championship in Atlanta. :yikes: - Barry Bonzack [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2013, 14:01
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2013, 17:07
kevinvincent kevinvincent is offline
Registered User
FRC #0254
 
Join Date: Jan 2013
Location: San Jose
Posts: 4
kevinvincent is an unknown quantity at this point
Re: Physics Equations in Java

Convert this to Java and you're set: https://github.com/anidev/frisbee-calculator
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2013, 17:40
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
Re: Physics Equations in Java

Quote:
Originally Posted by kevinvincent View Post
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.

Last edited by pimathbrainiac : 26-01-2013 at 17:42.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2013, 17:53
kevinvincent kevinvincent is offline
Registered User
FRC #0254
 
Join Date: Jan 2013
Location: San Jose
Posts: 4
kevinvincent is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2013, 18:19
pimathbrainiac's Avatar
pimathbrainiac pimathbrainiac is offline
Today, Regionals. Tomorrow, Worlds.
AKA: Philip N
FRC #1127 (Lotus Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Milton HS
Posts: 49
pimathbrainiac can only hope to improve
Re: Physics Equations in Java

My team says fixed angle, though
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2013, 22:35
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Physics Equations in Java

Quote:
Originally Posted by pimathbrainiac View Post

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.


Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2013, 04:53
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Physics Equations in Java

Quote:
Originally Posted by Ether View Post
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?
__________________
Attending: MN Duluth Regional
Reply With Quote
Reply


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


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

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