Have you tried something like this?
Code:
import ...AxisCamera;
import ...DriverStation;
public class CameraControl{
AxisCamera ac = AxisCamera.getInstance();
DriverStation ds = DriverStation.getInstance();
public CameraControl(){
updateCameraControl();
}
public void updateCameraControl(){
//convert to 0..100 int
int brightness = (int)(ds.getAnalogIn(1) * 100.0/5.0);
ac.writeBrightness(brightness);
}
}
I am not at our robot and source code right now but I did something similar last year. Call an instance of the above class's update method in a loop and use analog slider 1 to adjust brightness. If that works add some other parameters.