configure_radar() already selects only the ACC-target receiver, so the
object-list receiver (ars510_radar.py) and its ARS510_FUSED flag could
no longer be reached. Remove both, with their tests and their branches
in the radar interface and the angle, EPS8, pedal and filter-AOL checks.
get_params() rebuilds the flags on every start, so no saved value can
bring the old bit back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alpha long without a CAN filter disables the radar with UDS
CommunicationControl (28 01 01 to 0x750/0x0F). That stops the radar's
car-bus (bus 0) output only; the radar bus (bus 1) keeps running at full
rate, ACC target 0x235/0x237/0x239 included (RAV4s on 8821F0R03100, one
a 26 min drive; a C-HR Hybrid 8821FF410500 on opendbc's 22 min
"openpilot longitudinal, radar disabled" route).
configure_radar() used to clear the receiver and mark the radar
unavailable in that case, so alpha long without a CAN filter ran
vision-only. Keep the receiver on instead. The radar-torque AOL check
allows ARS510_RADAR on the RAV4 2022 with or without openpilot
longitudinal, as the filter, angle, pedal and EPS8 checks already do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
capture() stores only the CANParser's newest accepted sample per batch,
so when pandad batches two Throttle frames (100 Hz) into one packet the
stored counter advances by 2 and the strict previously-stored + 1
validity check flaps False for a tick. Each flap hard-resets StopAndGo's
standstill clock, which needs 51 consecutive ready frames, so the 3 kph
hold pulse never fires and EyeSight's standstill timeout drops ACC --
on essentially every SNG standstill. Replay of the 2026-11-24 incident
segment through the real interface/controller: the counter check was the
only failing gate (71/544 stop ticks) and the clock peaked at 24/51.
Validity now means the stored sample is the parser's current accepted,
checksum-verified sample whose counter advanced from the previously
stored one. A counter that does not advance is still never stored or
validated, and the sender's freshness gates still retire stale
samples. The panda keeps enforcing the strict +1 sequence on the raw
bus, where it sees every frame, before passing any modified frame.
Tests: capture() unit tests for batched delivery (including wraparound
and stalled counters), and a caller-level test with jittered Throttle
batching that reaches the hold pulse -- a delivery pattern the existing
caller harness cannot represent, since it feeds exactly one frame per
message per tick. With this change the incident replay produces hold
pulses (speed=True on 45 calls, clock peak 55, 17 spoofed frames)
instead of none.
The B10's camera drops ACC on its own, for example when the front
passenger unbuckles (route 00000018, 21:25 CET): cruise turns off and
unavailable in the same frame, and openpilot only showed pcmDisable and
wrongCarMode, a soft chime and no message, at 52 km/h.
Such a cancel is now cruiseDisabled: TAKE CONTROL IMMEDIATELY, "Car
Cancelled Cruise". The driver's own cancels also make ACC_STATE 1, so
braking and the stalk pushed up (now reported as the cancel button) keep
the usual disengage. Replayed on the logged CAN: the passenger cancel and
two others on route 00000017 (18:47, 19:06) are announced; a brake cancel
and a stalk cancel are not.
The B10's CAN-FD traffic keeps the panda's interruptRateCan2 fault set on
every pandaStates sample (also on upstream-based drives, where engagement
worked). Dom blocks engagement on any panda fault, so route 00000002 had
controlsMismatch from startup. Exempt only that fault for the B10, as Dom
does for qualified Honda, Hyundai and GM profiles; all other faults block.
Car code, DBC, fingerprints and panda safety from the opendbc Leapmotor port
(commaai/opendbc#3936), with alpha openpilot longitudinal and the low-speed
ramp boost to 56 steps.
Adapted to Dom:
- safety mode 40 (39 is Tesla pre-AP here)
- CRC-8H2F through crc8_update, rx checks const
- CarSpecs mass (Dom still uses it)
- no steering-wheel button events for wheel_actions