Thread: camera help!
View Single Post
  #5   Spotlight this post!  
Unread 07-01-2006, 17:19
dm0ney's Avatar
dm0ney dm0ney is offline
Will Code For Food (Food Optional)
AKA: Deepak Mishra
None #0217 (The ThunderChickens)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Shelby Twp., MI
Posts: 48
dm0ney will become famous soon enough
Send a message via AIM to dm0ney
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