Skip to content

Fix scripted mk1 encoder turns and ColdFire depacker matching - #42

Open
water-feature wants to merge 2 commits into
elekloader:mainfrom
water-feature:fix/encoder-cadence-and-depacker-alignment
Open

water-feature wants to merge 2 commits into
elekloader:mainfrom
water-feature:fix/encoder-cadence-and-depacker-alignment

Conversation

@water-feature

Copy link
Copy Markdown

We found both issues while using DigiEmu to test Taktone, which runs modified Digitakt firmware on Digitone hardware. An odd-address signature match blocked the startup check, and batching encoder detents made scripted knob turns unreliable when testing Taktone’s machine controls. The fixes apply to DigiEmu’s shared code, and the regression tests run without Taktone firmware.

Scripted mk1 turns now send one panel event per detent, with 40 ms between events. Sending the whole turn as one UART delta could cause the firmware to clamp the movement. Model panels continue to receive an aggregated turn through their own input path.

The ColdFire depacker lookup now considers only word-aligned addresses. An odd-address occurrence in data could previously make an otherwise unique instruction signature ambiguous. The lookup still requires exactly one aligned match.

Verification

  • 7 new regression tests passed, covering both directions of encoder turns, zero detents, Model panel input, and aligned signature matching.
  • All 7 hashed-symbol tests passed.
  • Firmware-check tests reported 3 passes and 9 skips. No firmware boot was verified in this checkout.

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