Compare commits

...

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 34de28f67b Fix mirrored camera image on AtomS3R-M12 (OV3660) 2026-07-27 09:24:24 +00:00
copilot-swe-agent[bot] 439fdb457e Initial plan 2026-07-27 09:11:12 +00:00
@@ -153,7 +153,16 @@ private:
config.grab_mode = CAMERA_GRAB_WHEN_EMPTY;
camera_ = new Esp32Camera(config);
camera_->SetHMirror(false);
// AtomS3R-CAM (GC0308) and AtomS3R-M12 (OV3660) share this board file but
// mount their sensors with opposite orientations, so the OV3660 used on
// the M12 variant needs hmirror enabled to avoid a mirrored image.
sensor_t *sensor = esp_camera_sensor_get();
if (sensor && sensor->id.PID == OV3660_PID) {
camera_->SetHMirror(true);
} else {
camera_->SetHMirror(false);
}
}
virtual Camera* GetCamera() override {