Skip to content

opendbc: regen prompt earlier + radar donor pin - #5

Merged
daggerhashjack merged 12 commits into
nap-devfrom
regen-decel-prompt
Aug 29, 2026
Merged

daggerhashjack merged 12 commits into
nap-devfrom
regen-decel-prompt

Conversation

@daggerhashjack

Copy link
Copy Markdown

FF nap-dev through the radar-donor-contract SHA openpilot already pins, plus the earlier regen under-delivery prompt (4fd0b31). Needed so the 0.11.1 openpilot submodule pointer exists on origin.

daggerhashjack and others added 12 commits August 21, 2026 21:00
New radars still hold the donor VIN and reject this car. Read F190 when
vinValidity sticks, then put that VIN on the GTW feed. Empty VIN keeps
current passthrough.

Co-authored-by: Cursor <cursoragent@cursor.com>
IRITable never set vinValidity, so auto-read never started. The UI can
now request one F190 read. SGUFail was blocking engage on a live
uncalibrated radar; HWFail still blocks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Empty VIN used to skip 0x560, so panda wrote position from the leftover
behind-nosecone flag. Always stream 0x560 so Donor Position is the nibble,
including passthrough. Keep a decoded F190 if cleanup times out, and treat
a frozen Bosch table plus SGUFail as radarFault.

Co-authored-by: Cursor <cursoragent@cursor.com>
VIN character 8 of 2/4 is not dual-motor on 2015 RWD 5YJSA1E2. Forcing
Msg2A9_FourWheelDrive on this chassis sprays Bosch tracks in motion.
Keep chassis xWD from live 0x398; still impersonate the donor VIN.
NAPRadarIgnoreHwFail left the frozen-table+SGUFail lockout in place, and
a compiled params_pyx miss treated ignore as False. Resolve the flag live
from nap_conf, Params, then the on-disk file.
IgnoreHwFail was suppressing the frozen-table+SGUFail lockout, so stale
tracks could become leadOne and slam aTarget. Keep the toggle for raw
HWFail only; frozen && SGUFail still faults after ~5s.
Ignore still covers raw HWFail. Frozen+SGUFail no longer bricks engage
when Ignore is on — those ghost tracks are dropped so they cannot
become leadOne. Stock-safe radarFault remains when Ignore is off.
UI overlay toggle. Default off.
Tinkla 0.6.6 did not talk on the radar bus until 0x560 was whole.
We were forwarding this-car identity immediately, then switching
contracts a second later. Host 0x560 is 10 Hz so the wait is short.
The driver needs more time to add friction brake once regen cannot
deliver the request. Fire at a shallower regen command, a smaller
shortfall, and 0.5s of evidence instead of 0.8s.
@daggerhashjack
daggerhashjack requested a review from SloPOS as a code owner August 28, 2026 22:18
@daggerhashjack
daggerhashjack merged commit 3c4da44 into nap-dev Aug 29, 2026
7 checks passed
@daggerhashjack
daggerhashjack deleted the regen-decel-prompt branch August 29, 2026 17:05
cursor Bot pushed a commit to jmbrunick/openpilot that referenced this pull request Sep 16, 2026
Point opendbc_repo at the merge of NotAutopilot/opendbc#5
(3c4da443) so the pedal-chime / earlier-regen-prompt change
tracks origin/opendbc nap-dev, not the pre-merge PR head.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant