
Tocalculate the first joint angle, θ1, that finds the correct bearing it is a simple inverse tangent relationship shown below.
The range joint angle, θ2, is a little bit more difficult to calculate. We first calculated the angle of maximum range. This calculation uses ‘z’ calculated above, but since ‘z’ is a function of ‘θ2‘, preformed an iterative search to determine the angle of maximum range. The variable ‘v’ is the velocity of the ball leaving the barrel, this value was determined experimentally.
We next calculated the range of the shot and the maximum range the shooter is able to achieve at the current height.
If the range exceeded the shooters maximum range, the angle of maximum range was used to take the shot. If not then the equation below was used to calculate the angle required to make the shot.
No comments:
Post a Comment