Tesla: smooth transition after gas pedal override #3249
Tesla: smooth transition after gas pedal override #3249lukasloetkolben wants to merge 3 commits intocommaai:masterfrom
Conversation
Car behavior reportReplays driving segments through this PR and compares the behavior to master. Testing 20 segments for: TESLA_MODEL_3, TESLA_MODEL_Y ✅ 0 changed, 20 passed, 0 errors |
7189977 to
63c0ae8
Compare
|
Consider this one dzid26@3c3b826 It also was needed to only rate limit maximum jerk funnily enough. |
70c72c4 to
b33dc2a
Compare
This reverts commit b33dc2a.
|
I tested this again today, the bug with the rapid pedal pushes @sshane and i noticed during the test drive, is already present in the current implementation and isn't caused by this fix. The override state also doesn't seem to be necessary. In my view, this is a clear improvement. I've already submitted a similar solution a year ago. |


ramps jerkMin/jerkMax from 0 back to their normal values after gas release. This limits how fast the DI rate limiter can move away from 0 after the override ends, giving a smooth transition instead of an instant jump.
Validation