Repository navigation
fix(autoresearch): drop misleading 'RMT RX' label on non-RMT platforms (#3059 partial) - #3061
Conversation
#3059) The capture path printed '<DRIVER> TX -> RMT RX: External GPIO wire' regardless of which RX peripheral is actually in use. On Teensy 4 there is no RMT — the resolved backend is FlexPWM. The hardcoded label burned an hour of Teensy-4 debug today (#3059) because the log made it look like the test was running through ESP32 code. Replace the hard-coded peripheral name with 'external RX', which is true on every non-RMT platform regardless of which capture backend RxBackend::PLATFORM_DEFAULT resolved to (FlexPWM on Teensy 4, LPC_SCT on LPC845, ISR/native elsewhere). This is the surgical part of #3059 (ask #2 of 3). The decoder-tolerance ask (#1) and the decoder-reject-reason ask (#3) need bench work documented in the issue thread — see the follow-up comment with the live edge dump from this session.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughIn ChangesLog Label Fix in capture()
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Stops the AutoResearch capture log from hardcoding "RMT RX" on platforms that have no RMT. This is the surgical part of #3059 — the decoder-tolerance / decoder-reject-reason asks need bench work and are documented in a follow-up investigation comment on the issue.
What changed
Truthful on every backend: RMT on ESP32, FlexPWM on Teensy 4, LPC_SCT on LPC845, ISR / native elsewhere.
Why not address tolerance + decoder reject reason in this PR
The hypothesis posted in #3059 was "the 170ns decoder tolerance was sized for RMT RX; FlexPWM + FlexIO jitter on Teensy 4 needs ~250-300ns." Investigating against the live edge dump from this session, that hypothesis didn't hold:
capture()— not legacy WS2812 — so the decoder's reference windows were aligned with the V5 spec, not RMT-era legacy.H=940interleaved withH=640) and a bimodal LOW pattern (L=286interleaved withL=586). Neither matches V5 (225/580 H, 645/1000 L) nor legacy (250/875 H, 375/1000 L) — most edges sit between the expected bins, not inside either.If the FlexPWM RX is merging edges (or undersampling at high transition density), no amount of tolerance widening on the decoder side can recover the missing edges. The fix has to live in the FlexPWM RX backend, not in
AutoResearchTest.cpp. That's a different repo of work and shouldn't get folded into this label fix.So this PR ships only the change I can defend. The decoder asks remain open on #3059 with a detailed investigation comment.
Test plan
Refs #3059
Summary by CodeRabbit