View Single Post
  #2   Spotlight this post!  
Unread 04-02-2007, 18:57
Mitch's Avatar
Mitch Mitch is offline
Registered User
FRC #1197 (TorBots)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Southern California
Posts: 7
Mitch is an unknown quantity at this point
Re: Enabling Multiple Light Tracking Using Kevin's Code

After thinking about this more... this is my plan, feedback would be appreciated. It is not implemented yet, I am currently in the process.

1. "extern" the camera_acks and ncks variables in camera.c so that they are global (so I can put all the multi-light tracking in another file). Also globalize the camera_initialized variable.

2. I create a function which is run every loop from main. This function will first check if the camera is initialized and if so, set the camera to poll mode (once).

3. Wait for a T-Packet

4. If the bounds received are too large, designating itself as a "blob" we now do what team 250 has said (split the window in two and retrack each side to receive two bounds)

5. Rinse and repeat.