tracking two tetras?

recently I thought about tracking two tetras at once(if they are both in my field of view) or at the least driving towards ONE of them.
If i could paint half the picture with black, I could just erase one tetra.
now how ca i change anything about the picture?

also, sometimes the camera gives me a GREEN picture- with everything green and blue and black.
does anyone know why?

This is a SERIOUS problem that at the moment I’m quite concerned about. (the two tetra problem) - basically what it comes down to is you’re going to have to do something tricky. The camera detects the center of mass of the calibrated color in the image, which means that if two tetras of equal distance are in the field of vision, the camera will return the point between them.

One thought I had was you could start your robot facing paralell to the wall, set the x-range of the view window to a really small value (10-20), and then slowly rotate the robot until it sees a tetra. because of the small window, we can be reasonably sure it is only one tetra. I haven’t tested this yet.

Try this: When you see a tetra pan the camera far enough that the center point of the target should be right on the edge of the field of view of the camera. If it is where it should be then you are only tracking one tetra. If not then you were previously tracking two tetras and now you are only tracking one. Some variation on that.

Actually, my question was how to change the field of view?

you can’t using the default code as it is. Basically you send:
VW xmin ymin xmax ymax\r
to the camera. I’m not too familiar with the default code so I can’t help you any more. sorry :’(