View Single Post
  #16   Spotlight this post!  
Unread 15-02-2016, 09:46
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is online now
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 459
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Win a Hat! (Its a really nice hat, its a really hard problem)

Here is a picture of our labview implementation of the code for this... It calculates angle based on the distance to the tower (horizontally), the height of the opening, and the velocity of the shooter.
Click image for larger version

Name:	eq.PNG
Views:	27
Size:	18.3 KB
ID:	20079

It's split up to make it more readable, but is essentially a quadratic formula with three terms that are each calculated from the parameters. There are 2 quad formulas because in a normal parabola, the ball will cross the opening twice (once going up, once going down), so there are two solutions. We take the closer one.

Hope this helped!
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote