View Single Post
  #2   Spotlight this post!  
Unread 03-10-2006, 15:56
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Camera Programming

I've used Kevin's code the last two years, modifying this year's code to set the camera to autotrack and report servo values.

To handle the camera, you need to:
  • Call the initialization function, Initialize_Camera(), in User_Initialize()
  • call Camera_Handler() on a regular basis (the slow loop works)

The data is dumped into the variable T_Packet_Data. It contains (by default):
  • The upper left and lower right points of the bounding box of the color blob (x1, y1, x2, y2)
  • The median of the color blob (mx, my)
  • The number of pixels in the blob
  • A "confidence" value (which is proportional to the number of pixels)
See camera.h for details.

If you have done all this, and are having problems getting the robot to "respond", you will have to go into more detail.