Set raw exposure before setting auto exposure (#2429)

On a Luma P1, autoexposure on first boot was getting overridden with the manual exposure setting. This was traced back to #1814, where the order of setting auto exposure and raw exposure was flipped. This flips it back.
This commit is contained in:
Alan Everett
2026-04-10 00:04:49 -04:00
committed by GitHub
parent 3379a1a132
commit a5be3d062c

View File

@@ -465,13 +465,13 @@ public class VisionModule {
pipelineSettings.cameraExposureRaw = 10; // reasonable default
}
settables.setExposureRaw(pipelineSettings.cameraExposureRaw);
try {
settables.setAutoExposure(pipelineSettings.cameraAutoExposure);
} catch (VideoException e) {
logger.error("Unable to set camera auto exposure!");
logger.error(e.toString());
}
settables.setExposureRaw(pipelineSettings.cameraExposureRaw);
if (cameraQuirks.hasQuirk(CameraQuirk.Gain)) {
// If the gain is disabled for some reason, re-enable it
if (pipelineSettings.cameraGain == -1) pipelineSettings.cameraGain = 75;