You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
follow-up(#4723): AutoResearch UART RX decode uses different timing for stream and decode #5197
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Unaddressed CodeRabbit review finding(s) from #4723, checked against current master.
1. examples/AutoResearch/AutoResearchTest.cpp:659 (decode at :857)
For UART drivers, rx_config.stream_timing is set from buildRxDecodeTiming(timing, driver_name), but the later decode() uses fl::make4PhaseTiming(uart_timing, 250). On Teensy 4.x, where FlexPWM is the default RX backend, the two timings can classify a gap bit differently, which leads to INVALID_ARGUMENT or inexact streams.
Suggested fix: Compute uart_timing before rx_channel->begin(), set stream_timing = make4PhaseTiming(uart_timing, 250) for UART drivers, and reuse that value in decode(). Keep buildRxDecodeTiming() for drivers that are not UART.
Missed CodeRabbit review: merged before the review was read (clud pr_merge_watch bug, fixed in talos-hq/clud#2719).
coderabbit-followupFollow-up for a CodeRabbit finding missed at merge timesanitizedTitle, body and conversation screened; review text requires separate screening.
Activity
fix(autoresearch): use one UART wire timing for RX stream and decode (F…