View Single Post
  #3   Spotlight this post!  
Unread 20-01-2011, 13:36
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Axis camera setup problem

Quote:
Originally Posted by gyroscopeRaptor View Post
How do we make it actually display video on the driver panel?
If you take a look at the 2010 Camera Tracking example included in your WindRiver installation, you'll see some camera code.

You basically need to do a few things,
Code:
// In your constructor
AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(CAMERA_RESOLUTION);
camera.WriteCompression(CAMERA_COMPRESSION);
camera.WriteBrightness(CAMERA_BRIGHTNESS);
camera.WriteMaxFPS(CAMERA_MAX_FPS);
camera.WriteExposureControl(CAMERA_EXPOSURE);
camera.WriteWhiteBalance(CAMERA_WHITE_BALANCE);

// When you want to display a new image.
if (camera.IsFreshImage()) {
  HSLImage *image = camera.GetImage();
}
You can find more sample code at https://github.com/MMRambotics/RetroreflectiveTracking.
Reply With Quote