Repository navigation
Show stick calibration progress and redraw as it changes - #74
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 returnedfalse. 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 leastkMinRangeCountsfrom center.tick()returnstruewhenever that count changes during the rolling step, so the screen redraws.N of 4 sides doneinstead ofnot 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
tick()reports progress changes (fails on the old code).sidesWithEnoughRange().pio test -e native -f test_menu -f test_calibrationpasses;pio runbuilds.Not yet tried on hardware.
🤖 Generated with Claude Code