View Single Post
  #1   Spotlight this post!  
Unread 28-01-2007, 15:21
JohnC's Avatar
JohnC JohnC is offline
my other name is nigel
FRC #0360 (360 Revolution)
Team Role: Programmer
 
Join Date: Mar 2005
Rookie Year: 2005
Location: user_routines.c
Posts: 100
JohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the roughJohnC is a jewel in the rough
Send a message via AIM to JohnC
Using VirtualWindow() ... how?

I'm looking to track two lights to be able to center the robot between them, but I am clueless.

If I tell the camera to use a VW, will it go back to using a full window in the next loop? Will I still be able to use the pan/tilt angles as printed by the default camera code? Where will I find the coordinate values of the bounding box? If I create two VWs in one loop of autonomous code (for two lights), how can I get the coordinates of the bounding box for each?

Also, I'm assuming I don't need to change the camera to Raw Mode because the initialization function does that.

Basically, as is very clear, I'm new to using the camera. Any help is appreciated.
__________________
What place are we at? ... TODAI!