View Single Post
  #1   Spotlight this post!  
Unread 23-01-2010, 12:35
joshholat joshholat is offline
Registered User
FRC #0930
 
Join Date: Jan 2010
Location: Mukwonago
Posts: 24
joshholat is an unknown quantity at this point
Java/Netbeans Camera Code for Classmate PC and Axis Camera

My team is using Java and trying to get the camera working on the driver station. We have v19 on the cRIO and all the netbeans plugins are updated. Also, the camera has the FRC account and the root account on it at the right IP address and is plugged into port two via crossover ethernet. that said, there is something wrong with the code we are using i think:

Code:
public void teleopPeriodic() {
    while (true && isOperatorControl() && isEnabled()){

        AxisCamera.getInstance().writeCompression(0);
AxisCamera.getInstance().writeResolution(AxisCamera.ResolutionT.k320x240);
AxisCamera.getInstance().writeBrightness(10);

}
}
it keeps erroring out when we deploy with that code in our program, but not if we comment that out. is this the right code?