View Single Post
  #4   Spotlight this post!  
Unread 26-01-2010, 21:32
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: camera and console

If the camera and driver station machine are set up properly, you should only need a few lines of code to be able to see a feed from the camera. Top three things to confirm:
1) The camera has an FRC/FRC account added to it (see the control system documentation for details).
2) The driver station and dashboard have been PROPERLY updated. You may even have to fully delete the folders in program files and reinstall them.
3) The camera is connected via crossover cable to ethernet port 2 on the cRIO and the LEDs on the camera are green.

The code to include:
Code:
import edu.wpi.first.wpilibj.camera.AxisCamera;
...
AxisCamera.getInstance().writeResolution(AxisCamera.ResolutionT.k160x120);
AxisCamera.getInstance().writeBrightness(0);

Last edited by Patrickwhite : 26-01-2010 at 21:34.
Reply With Quote