Skip to content

Show stick calibration progress and redraw as it changes - #74

Merged
thePunderWoman merged 1 commit into
mainfrom
stick-calibration-progress
Oct 24, 2026
Merged

thePunderWoman merged 1 commit into
mainfrom
stick-calibration-progress

Conversation

@thePunderWoman

Copy link
Copy Markdown
Member

Problem

On the new boards, stick calibration never showed as having enough data. The rolling step's screen only redraws when MenuController::tick() reports a change, and on the stick calibration screen it always returned false. The screen stayed on "not enough yet" no matter how far the stick was rolled.

Fix

  • StickCalibrationFlow::sidesWithEnoughRange() counts how many of the four extremes are at least kMinRangeCounts from center.
  • tick() returns true whenever that count changes during the rolling step, so the screen redraws.
  • Until all four sides are reached, the rolling screen shows N of 4 sides done instead of not enough yet, so you can see progress and spot a side that falls short. Sides aren't named left/right because the X axis sign hasn't been confirmed on hardware.

Tests

  • Regression test: tick() reports progress changes (fails on the old code).
  • Rendering of partial progress, plus unit tests for sidesWithEnoughRange().
  • pio test -e native -f test_menu -f test_calibration passes; pio run builds.

Not yet tried on hardware.

🤖 Generated with Claude Code

The rolling step's screen never redrew: MenuController::tick() always
returned false on the stick calibration screen, so the "not enough yet"
line stayed up even after the stick had covered enough range. tick() now
reports a change whenever the number of sides with enough range changes,
and the screen shows "N of 4 sides done" until all four are reached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@thePunderWoman
thePunderWoman merged commit 90dd626 into main Oct 24, 2026
3 checks passed
@thePunderWoman
thePunderWoman deleted the stick-calibration-progress branch October 24, 2026 05:51
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.

1 participant