selfdrived: prompt max regen when planned decel exceeds envelope - #13
Merged
Conversation
controlsd clips the planner request to the pre-AP regen envelope before the car sees it, so a lead braking harder than the envelope allows produced no prompt even though the driver needed to add brake. Tinkla surfaced this case naturally because its pedal PID saturated at the rail; VDAS clamps upstream, hiding it. Read the unclamped plan in selfdrived and raise the same pedalMaxRegen prompt through a saturating evidence counter. Replayed against the 7/21-7/22 Montana logs: three fires, all sustained high-speed decels delivering 1+ m/s2 short of plan; silent otherwise.
opendbc_repo -> regen-prompt-fix branch tip (6840f8f2), pending NotAutopilot/opendbc#3. Points at a real, pushed commit; re-check after that PR merges in case the merge strategy produces a different nap-dev SHA for the same change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
controlsd clips the planner request to the pre-AP regen envelope before the
car sees it, so a lead braking harder than the envelope allows produced no
prompt even though the driver needed to add brake. Tinkla surfaced this case
naturally because its pedal PID saturated at the rail; VDAS clamps upstream,
hiding it. Read the unclamped plan in selfdrived and raise the same
pedalMaxRegen prompt through a saturating evidence counter.
Companion to NotAutopilot/opendbc#3 (regen under-delivery gate reachability
fix). The opendbc gitlink here points at that PR's branch tip (6840f8f2) —
if #3 merges via squash/rebase instead of a merge commit, this gitlink needs
a follow-up bump to the resulting nap-dev SHA before merging this one.
Replayed against the 7/21-7/22 Montana logs: three fires, all sustained
high-speed decels delivering 1+ m/s2 short of plan; silent otherwise.