|
Re: Angle Calculation from image of goal
If you've found the answer above, please disregard, but this is how we've done well:
Position the robot roughly aligned with the goal (that is, eyeball it).
Do a test launch. Note where the ball ends up, in terms of inches/feet to he left or right of the goal.
Rotate the robot a known amount (probably measured in terms of encoder counts on the left and right drive systems).
Do another test launch. Note where the ball ends up (same criteria).
Based on the two measurements above, calculate a "target point" that will result in a goal, and a "proportionality constant" to get there wif the robot is pointed somewhere else.
__________________
If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
|