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:
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?