|
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.
|