Skip to content

fix(autoresearch): drop misleading 'RMT RX' label on non-RMT platforms (#3059 partial) - #3061

Merged
zackees merged 1 commit into
masterfrom
fix/3059-object-fled-decoder-tolerance
Jun 15, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3059-object-fled-decoder-tolerance

Conversation

@zackees

@zackees zackees commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

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

- FL_WARN("[CAPTURE] " << driver_name << " TX -> RMT RX: External GPIO wire ...");
+ FL_WARN("[CAPTURE] " << driver_name << " TX -> external RX: External GPIO wire ...");

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:

  • The test config was already passing WS2812B-V5 timing (T1=225, T2=355, T3=645) to capture() — not legacy WS2812 — so the decoder's reference windows were aligned with the V5 spec, not RMT-era legacy.
  • The captured edges show a bimodal HIGH pattern (H=940 interleaved with H=640) and a bimodal LOW pattern (L=286 interleaved with L=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.
  • That bimodal distribution looks like adjacent same-state edges being merged by the RX capture path (the FlexPWM RX backend on Teensy 4), not a tolerance / timing-baseline problem in the test layer.

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

  • Locally inspected the diff against the live failure log; no other code path uses the "RMT RX" string.
  • Builds for the AutoResearch sketch were green before (this run); no API surface changed.
  • CI

Refs #3059

Summary by CodeRabbit

  • Tests
    • Corrected misleading label in test capture output to accurately reflect external RX behavior instead of incorrectly labeling it as RMT RX.
    • Enhanced test comments to clarify that RX peripheral handling is platform-dependent and RMT availability varies across platforms.

#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.
@coderabbitai

coderabbitai Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 833058e9-ef1f-4d05-a97d-8d0fbef680be

📥 Commits

Reviewing files that changed from the base of the PR and between 84ff2de and 50b0e24.

📒 Files selected for processing (1)
  • examples/AutoResearch/AutoResearchTest.cpp

📝 Walkthrough

Walkthrough

In examples/AutoResearch/AutoResearchTest.cpp, the non-RMT warning log inside capture() is corrected from "TX -> RMT RX" to "TX -> external RX", and surrounding comments are expanded to note that the RX peripheral is platform-dependent.

Changes

Log Label Fix in capture()

Layer / File(s) Summary
Fix capture() non-RMT warning label
examples/AutoResearch/AutoResearchTest.cpp
Warning log message changed from "TX -> RMT RX" to "TX -> external RX" for the io_loop_back=false, use_dma=true path; comments added to clarify that the RX backend is platform-dependent and should not claim RMT on non-RMT platforms.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

Poem

🐇 A label once wrong, now set right with care,
"External RX" floats true through the air.
No RMT claimed where no RMT exists,
The log tells the truth — the rabbit insists!
Hop hop, little fix, small but precise! 🌟

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing a misleading 'RMT RX' label in AutoResearch's capture logging on non-RMT platforms. It clearly identifies the problem and solution.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/3059-object-fled-decoder-tolerance

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@zackees
zackees merged commit 8818753 into master Jun 15, 2026
6 of 7 checks passed
@zackees
zackees deleted the fix/3059-object-fled-decoder-tolerance branch June 15, 2026 05:08
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant