Skip to content

Tesla: use DI_accelPedalPressed#3300

Open
dzid26 wants to merge 2 commits into
commaai:masterfrom
dzid26:gas-pressed
Open

Tesla: use DI_accelPedalPressed#3300
dzid26 wants to merge 2 commits into
commaai:masterfrom
dzid26:gas-pressed

Conversation

@dzid26

@dzid26 dzid26 commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Tesla has a accelerator pressed signal.

Benefits:

  • a bit of red diff - safety doesn't need DI_systemStatus now
  • DI_accelPedalPressed reacts to less pressure compared to old DI_accelPedalPos - this helps to avoid jerking forward in forks that use gas pressed gesture
image

2a251bf8a265ff32/00000487--5fcd84003d/1

image But that's just could be due to lower enable threshold.

@github-actions github-actions Bot added car related to opendbc/car/ tesla car safety vehicle-specific safety code labels Apr 6, 2026
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Car behavior report

Replays driving segments through this PR and compares the behavior to master.
Please review any changes carefully to ensure they are expected.

Testing 20 segments for: TESLA_MODEL_3, TESLA_MODEL_Y

⚠️ 13 changed, 7 passed, 0 errors

Show changes

TESLA_MODEL_3 - 3b747326f67476fc/00000003--be5f7dfd59/10

  gasPressed (579 diffs)

  frames 0-6
  master:   _/‾‾‾‾‾
  PR:       __/‾‾‾‾
            rise: PR lags by 1 frames (9ms)

  frames 630-643
  master:   ‾‾‾‾‾\________
  PR:       ‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 4 frames (39ms)

  frames 690-711
  master:   _________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 12 frames (119ms)

  frames 4428-4449
  master:   ‾‾‾‾‾\________________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 12 frames (119ms)

  frames 4510-4551
  master:   _____________________________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 32 frames (319ms)

  frames 4993-5335
  master:   ‾‾‾‾‾\______________________________________________________________...
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...
            fall: PR lags by 333 frames (3329ms)

  frames 5376-5387
  master:   ____________
  PR:       _____/‾\____

  frames 5394-5472
  master:   ____________________________________________________________________...
  PR:       _____/‾\_____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...
            rise: PR leads by 69 frames (689ms)

  frames 5733-5862
  master:   ‾‾‾‾‾\______________________________________________________________...
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...

TESLA_MODEL_3 - cb4d3c4cf8205224/00000044--6e75fc53fd/4

  gasPressed (675 diffs)

  frames 2017-2701
  master:   _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...
  PR:       ____________________________________________________________________...

TESLA_MODEL_3 - fa2c6a0d5a103101/00000000--b3524905e8/1

  gasPressed (43 diffs)

  frames 0-6
  master:   _/‾‾‾‾‾
  PR:       __/‾‾‾‾
            rise: PR lags by 1 frames (10ms)

  frames 19-30
  master:   ‾‾‾‾‾\______
  PR:       ‾‾‾‾‾‾‾\____
            fall: PR lags by 2 frames (20ms)

  frames 1713-1740
  master:   _______________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 18 frames (180ms)

  frames 5170-5192
  master:   ‾‾‾‾‾\_________________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 13 frames (130ms)

  frames 5801-5819
  master:   ______________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 9 frames (90ms)

TESLA_MODEL_3 - 530075d26cad58e4/0000002e--f6a5b83bdf/7

  gasPressed (181 diffs)

  frames 359-373
  master:   ‾‾‾‾‾\_________
  PR:       ‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 5 frames (50ms)

  frames 646-668
  master:   __________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 13 frames (130ms)

  frames 884-899
  master:   ‾‾‾‾‾\__________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 6 frames (60ms)

  frames 1102-1118
  master:   ____________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 7 frames (70ms)

  frames 2168-2179
  master:   ‾‾‾‾‾\______
  PR:       ‾‾‾‾‾‾‾\____
            fall: PR lags by 2 frames (20ms)

  frames 2232-2242
  master:   ______/‾‾‾‾
  PR:       _____/‾‾‾‾‾
            rise: PR leads by 1 frames (10ms)

  frames 2577-2593
  master:   ‾‾‾‾‾\___________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 7 frames (70ms)

  frames 2864-3008
  master:   ____________________________________________________________________...
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...
            rise: PR leads by 135 frames (1350ms)

  frames 5048-5059
  master:   ‾‾‾‾‾\______
  PR:       ‾‾‾‾‾‾‾\____
            fall: PR lags by 2 frames (20ms)

  frames 5455-5467
  master:   ‾‾‾‾‾\_______
  PR:       ‾‾‾‾‾‾‾‾\____
            fall: PR lags by 3 frames (30ms)

TESLA_MODEL_3 - c0fe59cc1ebbd1b3/00000005--5ec51e6635/18

  gasPressed (17 diffs)

  frames 2967-2979
  master:   ________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾
            rise: PR leads by 3 frames (30ms)

  frames 3056-3069
  master:   ‾‾‾‾‾\________
  PR:       ‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 4 frames (40ms)

  frames 5766-5785
  master:   _______________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 10 frames (100ms)

TESLA_MODEL_3 - d2ef70a79f9aedf8/00000048--e5a1dee61f/60

  gasPressed (299 diffs)

  frames 767-805
  master:   ‾‾‾‾‾\____________________________/‾‾‾‾
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

  frames 1830-1850
  master:   ‾‾‾‾‾\_______________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 11 frames (109ms)

  frames 1928-1981
  master:   _________________________________________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 44 frames (439ms)

  frames 2688-2912
  master:   ‾‾‾‾‾\______________________________________________________________...
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...

TESLA_MODEL_Y - 1d7097acc16c1927/00000002--96eeb0ec9e/2

  gasPressed (423 diffs)

  frames 0-6
  master:   _/‾‾‾‾‾
  PR:       __/‾‾‾‾
            rise: PR lags by 1 frames (10ms)

  frames 484-776
  master:   ‾‾‾‾‾\______________________________________________________________...
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...

  frames 3950-4098
  master:   ‾‾‾‾‾\______________________________________________________________...
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...

TESLA_MODEL_Y - 2a5a0210bcc9b83b/00000026--88e8f288bf/18

  gasPressed (81 diffs)

  frames 0-39
  master:   ________________________________________
  PR:       _/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____

  frames 1073-1097
  master:   ____________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 15 frames (150ms)

  frames 4862-4891
  master:   ‾‾‾‾‾\___________________/‾‾‾‾
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

  frames 5536-5550
  master:   ‾‾‾‾‾\_________
  PR:       ‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 5 frames (50ms)

  frames 5621-5637
  master:   ____________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 7 frames (70ms)

TESLA_MODEL_Y - 6946cfaf6ba995e3/00000089--85221cc482/4

  gasPressed (30 diffs)

  frames 1142-1155
  master:   ______________
  PR:       _____/‾‾‾\____

  frames 1950-1961
  master:   ____________
  PR:       _____/‾\____

  frames 3151-3164
  master:   ______________
  PR:       _____/‾‾‾\____

  frames 3294-3307
  master:   ______________
  PR:       _____/‾‾‾\____

  frames 4343-4358
  master:   ________________
  PR:       _____/‾‾‾‾‾\____

  frames 4419-4432
  master:   ______________
  PR:       _____/‾‾‾\____

  frames 5247-5262
  master:   ________________
  PR:       _____/‾‾‾‾‾\____

TESLA_MODEL_Y - cb4d3c4cf8205224/0000000b--2b46c03b39/13

  gasPressed (158 diffs)

  frames 653-705
  master:   ________________________________________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 43 frames (430ms)

  frames 1936-1948
  master:   ‾‾‾‾‾\_______
  PR:       ‾‾‾‾‾‾‾‾\____
            fall: PR lags by 3 frames (30ms)

  frames 1975-1991
  master:   ____________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 7 frames (70ms)

  frames 2690-2714
  master:   ‾‾‾‾‾\___________________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 15 frames (150ms)

  frames 3091-3160
  master:   _________________________________________________________________/‾‾...
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾...
            rise: PR leads by 60 frames (600ms)

  frames 4373-4383
  master:   ‾‾‾‾‾\_____
  PR:       ‾‾‾‾‾‾\____
            fall: PR lags by 1 frames (10ms)

  frames 4404-4423
  master:   _______________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 10 frames (100ms)

  frames 5447-5475
  master:   ‾‾‾‾‾\_______________________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 19 frames (190ms)

TESLA_MODEL_Y - 1d7097acc16c1927/00000002--96eeb0ec9e/17

  gasPressed (1 diffs)

  frames 0-6
  master:   _/‾‾‾‾‾
  PR:       __/‾‾‾‾
            rise: PR lags by 1 frames (10ms)

TESLA_MODEL_Y - 7588270b74f42d15/0000005e--a984e0529a/8

  gasPressed (1 diffs)

  frames 0-6
  master:   _/‾‾‾‾‾
  PR:       __/‾‾‾‾
            rise: PR lags by 1 frames (10ms)

TESLA_MODEL_Y - da74b4dc7cea694c/00000018--c54ec37f9e/2

  gasPressed (38 diffs)

  frames 0-6
  master:   _/‾‾‾‾‾
  PR:       __/‾‾‾‾
            rise: PR lags by 1 frames (10ms)

  frames 1710-1744
  master:   ‾‾‾‾‾\_____________________________
  PR:       ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\____
            fall: PR lags by 25 frames (250ms)

  frames 2561-2582
  master:   _________________/‾‾‾‾
  PR:       _____/‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
            rise: PR leads by 12 frames (120ms)

@dzid26 dzid26 marked this pull request as ready for review April 24, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

car safety vehicle-specific safety code car related to opendbc/car/ DBC signals tesla

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant