|
Re: WPILIB Camera Code Implementation HELP
Quote:
Originally Posted by Ginto8
Once you have the locations of the targets' centers, there's a lot of information that can be extracted and used: - You can use the horizontal and vertical field-of-view angles to find the relative horizontal and vertical angles of each target
- You can use these relative angles to determine the setpoints for PID loops controlling the turn/tilt of your shooter -- I'd recommend a gyro for turn feedback and an accelerometer for tilt feedback.
- The angles, along with the angle and height of your camera and the height of the targets, can be used to determine how far away the target is. This can then be plugged into a look-up table populated by experimental results to choose the best speed.
|
Thank you so much. Is there anyway you could provide any sample methods/code with a simple motor implementation? Thank you again. 
__________________
Shawn Schwartz
Programming/Head of Website & Media, Team 4 ELEMENT
team4element.com
"Innovation distinguishes between a leader and a follower." -Steve Jobs
|