View Single Post
  #22   Spotlight this post!  
Unread 22-02-2012, 14:03
gnunes gnunes is offline
Registered User
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Westtown School
Posts: 57
gnunes has a spectacular aura aboutgnunes has a spectacular aura aboutgnunes has a spectacular aura about
Re: Trajectory Calculator (W/ Drag)

Quote:
Originally Posted by Lalaland1125 View Post
Our plan is to...slowly increase the velocity till the non-reversible drag including formula "hits" the target.
The problem is that there is no "formula" for the case where drag is included. If you are using LabView, then you could take my trajectory calculator (see post #11) and turn it into a sub-VI that would find the distance for you (just cut out all the graphing stuff which you won't need).

I would recommend using the trajectory calculator "off-line" to calculate the distance for, say 100 or 200 launch velocities between your fastest and slowest launch speeds. Then store that table of distance vs launch speed in your competition code, and use interpolation to find the velocity you want in a single pass. Much, much faster.