Go to Post The front page of the entire paper had the words "Gracious Professionalism" on the front cover. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2012, 17:34
commonsense commonsense is offline
Registered User
FRC #3452
 
Join Date: Jan 2012
Location: Berrien Springs FRC
Posts: 16
commonsense will become famous soon enoughcommonsense will become famous soon enough
Projectile Motion

Hey does anyone have a good algorithm for finding the velocity needed for the ball to go a certain distance and height. We have been working on it, but it has been pretty drab, and one of our programmers walked out on us because of it (of course he was pretty tired and needed food.) Or if you already have it programmed in LABview that's what we are using. This would be amazing cause it has been really nerve racking to try and do the physics (it's been months since I have had to do this work.) Thanks
  #2   Spotlight this post!  
Unread 02-02-2012, 17:40
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,815
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Projectile Motion

Doing the math can certainly help (and is very educational)... but personally, I would rather set it up with trial and error. Get your robot set up so you can easily change the shooter speed (using a potentiometer on the OI, for example), and feed in balls until you find the right speed for a given distance. Do this for several different distances, plot the results, and find a line of best fit (linear, quadratic, whatever gives the best results).
  #3   Spotlight this post!  
Unread 02-02-2012, 23:41
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Projectile Motion

Quote:
Originally Posted by Jon Stratis View Post
Do this for several different distances, plot the results, and find a line of best fit (linear, quadratic, whatever gives the best results).
Or discretize your parameters and use a lookup table (optionally add interpolation to this to get a piecewise model).
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor

Last edited by RyanCahoon : 03-02-2012 at 01:12. Reason: only the parameters need to be discretized. the values stored in the table can be of arbitrary precision
  #4   Spotlight this post!  
Unread 03-02-2012, 07:26
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: Projectile Motion

Yeah trying to figure it out yourself is probably way too hard. I don't think you necessarily have to come up with a model by trial and error though (even though that might be conceptually the simplest solution). You could probably find many models online that are very accurate (i.e. they incorporate drag, backspin and frontspin, and other factors). I think there might even be some that were created specifically for FRC, and are modeled off the balls we are using. With the material and weight of these balls, a simple parabolic motion model is definitely not going to be accurate.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Closed Thread


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 18:56.

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