Quote:
Originally Posted by nileshp87
By no means do I have my heart set on this method. Has anyone gotten the camera working from ~30ft? (with detection of angle and distance?). Is there any way I can measure or see the issues with the accelerometer?
|
If you want to measure distance from 30ft, you could track the two center rectangles. To center the image, you could take the average of the x-axis centers of mass for the two rectangles. To measure distance, you can measure the difference between the center's of mass since the distance between the two rectangles is constant (they'll be closer together at farther distances and farther apart at closer distances).
This might be relatively accurate if you're in the center of the field (middle of 27ft) or just a few feet from center. However, you will probably have distance and centering errors when you get too far off center.
If you are only varying the angle of your ball shooter, you probably won't find a shooter speed that works at both close and far distances (at least not for consistency I would think). You could also potentially vary the firing speed and keep a constant firing angle.
- Bryce