Skip to content

tesla_preap: make regen under-delivery prompt reachable - #3

Merged
daggerhashjack merged 1 commit into
nap-devfrom
regen-prompt-fix
Jul 23, 2026
Merged

tesla_preap: make regen under-delivery prompt reachable#3
daggerhashjack merged 1 commit into
nap-devfrom
regen-prompt-fix

Conversation

@daggerhashjack

Copy link
Copy Markdown

Field capture from 2026-07-22 (minutes after supercharging) shows the old
gate could never fire: the command sat within 0.5 DI of the rail for only
0.3s of a multi-second under-delivery, and one noisy aEgo sample reset the
consecutive dwell counter anyway. Gate on a deep-regen command with a real
decel request instead, and accumulate evidence in a saturating counter.

Replaying the captured route fires the prompt once at the weak-regen event
and stays silent through grade-compensated uphill decels; both windows are
committed as fixtures under opendbc/car/tesla/preap/tests/data/.

Field capture from 2026-07-22 (minutes after supercharging) shows the old
gate could never fire: the command sat within 0.5 DI of the rail for only
0.3s of a multi-second under-delivery, and one noisy aEgo sample reset the
consecutive dwell counter anyway. Gate on a deep-regen command with a real
decel request instead, and accumulate evidence in a saturating counter.
Replaying the captured route fires the prompt once at the weak-regen event
and stays silent through grade-compensated uphill decels; both windows are
committed as fixtures.
@daggerhashjack
daggerhashjack requested a review from SloPOS as a code owner July 23, 2026 15:27
@daggerhashjack
daggerhashjack merged commit fae392b into nap-dev Jul 23, 2026
7 checks passed
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