Go to Post If it gets people talking about not only robots but science and technology, it's all good. - Koko Ed [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 15-02-2016, 09:46
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 502
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:	30
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
  #17   Spotlight this post!  
Unread 17-02-2016, 19:18
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,086
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: Win a Hat! (Its a really nice hat, its a really hard problem)

Quote:
Originally Posted by Ether View Post

Plot this function with given values of Vo, d, and h vs x=0 to pi/3 radians.

Where it crosses the X axis is the angle solution in radians.

Vo = given initial (launch) speed feet/sec

d = horizontal distance from launch point to goal, feet

h = vertical height from launch point to goal, feet
Here's a detailed explanation of the derivation of the function.


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 06:05.

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