Skip to content

Don't reset camera zoom on gyro calibration (#94)#96

Merged
petegordon merged 1 commit into
mainfrom
fix/94-no-camera-zoom-reset-on-calibration
Jul 2, 2026
Merged

Don't reset camera zoom on gyro calibration (#94)#96
petegordon merged 1 commit into
mainfrom
fix/94-no-camera-zoom-reset-on-calibration

Conversation

@petegordon

Copy link
Copy Markdown
Member

Summary

Closes #94.

startCalibration() called overlay.setCameraPreset(selectedCameraPreset), which sets the camera position — encoding both the view angle and the zoom distance. So every recalibration (L3+R3 combo) snapped the camera back to a preset, wiping out the user's manual zoom/pan and making it hard to use the whole window.

Calibration should only re-zero gyro bias + orientation (resetGyroState()); it has no reason to move the camera — and finishCalibration() already doesn't touch it. Removed the stray setCameraPreset call.

Changes

  • apps/overlay/src/js/app.js — drop overlay.setCameraPreset(...) from startCalibration() (replaced with a comment explaining why calibration must not touch the camera).

Preserved behavior

  • Initial view is still set once at overlay init (app.js:590).
  • The camera preset selector UI still applies presets on demand (app.js:2251-2270).
  • Gyro reset itself is unchanged.

🤖 Generated with Claude Code

startCalibration() called overlay.setCameraPreset(), which snaps the camera
position (both angle AND zoom distance) back to a preset. So every recalibrate
(L3+R3) stomped the user's manual zoom/pan, making it hard to use the full
window. Calibration only needs to re-zero gyro bias + orientation
(resetGyroState); it has no business moving the camera — and finishCalibration
already doesn't. Removed the setCameraPreset call. The initial view is still
set once at overlay init, and the preset selector still works on demand.

Closes #94

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HwZjBdVgWqxqCoKkXsZnr4
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🔎 PR #96 preview — torn down

This PR is closed; its web preview and desktop prerelease have been removed.

@petegordon petegordon merged commit 692a495 into main Jul 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don’t reset camera zoom when gyro calibration

1 participant