View Single Post
  #1   Spotlight this post!  
Unread 08-02-2011, 18:37
ColonelThrtyTwo's Avatar
ColonelThrtyTwo ColonelThrtyTwo is offline
Registered User
FRC #3676
 
Join Date: Jan 2011
Location: Somewhere in Texas
Posts: 13
ColonelThrtyTwo is an unknown quantity at this point
Camera slowing down robot

Hello everyone.

I am attempting to test out the camera in Java. The default program in the cRIO had sent the camera images to the Driver station at an acceptable rate, so I was going to try the camera in java.

In my main robot class, I get an instance of the AxisCamera, set it to its minimum resolution, set it to 1 frame per second, and set the compression to 30. If I do this however, the robot experiences a 3-20 second delay between teleopPeriodic calls (tested with Timer.getFPGATimestamp() and NetConsole). It also garbles NetConsole messages horribly.

I am not doing any processing on the images; I am not even retrieving the image from the AxisCamera instance.

Code:
camera = AxisCamera.getInstance();
camera.writeResolution(AxisCamera.ResolutionT.k160x120);
camera.writeCompression(30);
camera.writeMaxFPS(1);
Any Suggestions?
Reply With Quote