camera black & white

We have modified our color level & brightness so that the camera only displays black and white images. We were wondering how to change that back to color. When we turn our camera off and on, reboot the robot, it still displays black & white images… Are there any suggestions?

Thanks!

HSLImage image; // Create and set up a camera instance 
		AxisCamera &camera = AxisCamera::getInstance(); 
		camera.writeResolution(k160x120); 
		camera.writeBrightness(0);
		
		myRobot.Drive(0.0, 0.0);
		Toggler cameraBrightness = new Toggler();
		Toggler cameraBrightness2 = new Toggler();
		Toggler cameraBrightness3 = new Toggler();
		Toggler cameraBrightness4 = new Toggler();
		Toggler cameraColorLevel = new Toggler();
		int cBrightness = 0;
		int cColorLevel = 0;
while (IsOperatorControl())
		{
			camera.GetImage(image.image); 
			
			if (cameraBrightness.DoesNewStateToggle(stick.GetRawButton(2)))
			{
				cBrightness++;
				camera.writeBrightness(cBrightness);
			}
			if (cameraBrightness2.DoesNewStateToggle(stick.GetRawButton(3)))
			{
				cBrightness--;
				camera.writeBrightness(cBrightness);
			}
			if (cameraBrightness3.DoesNewStateToggle(stick.GetRawButton(4)))
			{
				cColorLevel++;
				camera.writeColorLevel(cColorLevel);
			}
			if (cameraBrightness4.DoesNewStateToggle(stick.GetRawButton(5)))
			{
				cColorLevel--;
				camera.writeColorLevel(cColorLevel);
			}}

I’m not sure I fully understand the question. You seem to be programmatically setting the brightness and colorLevel. You may want to insert temporary printfs to display the colorLevel value.

If you’ve set other camera settings interactively that you’d like to reset, you can log into the camera using a web browser and use the camera utility to view and change settings. You can also use Vision assistant to change the typical settings.

Both of these interactive edits involve connecting the camera to a PC with IP of 192.168.1.xx so it can communicate with the camera which is at 90. You can use the login of FRC and password of FRC if using the http login.

Greg McKaskle