|
Re: camera help!
The camera will see anything in its field of view. However, you can control the FOV easily by keeping the camera pointed at the right green target.
For the more ambitious, you could probably whip up a Cartesian System that monitors position on the field.
The easiest way (IMHO) is to use the drive team during human mode. There are humans who get to control the robot, rely on your driver to line up and if you are using the camera, then activate it with a switch on the OI. Let the camera then line up your shooting mechanism.
For autonomous mode, I'd line it up accordingly, In most cases, your robot will not turn 180 degrees on a whim and shoot into your goal. If somehow you have mounted the camera so it can see both goals from sweeping around, add some code that only goes to green that is less than a certain pixel area, ensuring it goes to the one farther away and not closer.
__________________
Alumni
Team #217, The ThunderChickens
Student, Class of 2009
California Institute of Technology
|