Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VW MLB: Audi A4/S4 #27586

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e82f8aa
VW MLB: Audi A4/S4
jyoung8607 Mar 15, 2023
2124345
revert that
jyoung8607 Mar 15, 2023
dc87bbe
Merge branch 'master' into vw-mlb
jyoung8607 Mar 15, 2023
350010b
add DBC to release files
jyoung8607 Mar 15, 2023
5d3cddc
retry CI
jyoung8607 Mar 15, 2023
4eca169
regen CARS.md
jyoung8607 Mar 15, 2023
825a65e
switch to lateral accel controller
jyoung8607 Mar 17, 2023
94bf11a
adjust ramp rates and driver torque allowance
jyoung8607 Mar 17, 2023
03b9bc7
this code is bad and I should feel bad
jyoung8607 Mar 19, 2023
8c829a3
bump panda
jyoung8607 Mar 19, 2023
b996242
bump panda
jyoung8607 Mar 19, 2023
b8344f4
Merge branch 'master' into vw-mlb
jyoung8607 Mar 19, 2023
d8f331f
it really was bad
jyoung8607 Mar 19, 2023
4a2eb63
oops
jyoung8607 Mar 19, 2023
c0f1181
refactor
jyoung8607 Mar 19, 2023
977b0f5
output to zero during long resets
jyoung8607 Mar 19, 2023
51e1a2c
timer back to four minutes
jyoung8607 Mar 19, 2023
2d9103c
fix moar bugs
jyoung8607 Mar 19, 2023
bb0c39a
Merge branch 'master' into vw-mlb
jyoung8607 Feb 13, 2024
bc1f076
Merge branch 'master' into vw-mlb
jyoung8607 Feb 13, 2024
fc1877d
regen CARS.md
jyoung8607 Feb 14, 2024
195bfad
Merge branch 'master' into vw-mlb
jyoung8607 Feb 18, 2024
052b360
bump panda
jyoung8607 Feb 18, 2024
9d3f13a
stub long control CAN packers
jyoung8607 Feb 18, 2024
cd23040
temp hack in SWA_01 check
jyoung8607 Feb 18, 2024
6ce1d11
whitespace
jyoung8607 Feb 18, 2024
7d1b140
hack in SWA_01 correctly this time
jyoung8607 Feb 18, 2024
3f384d2
retry CI
jyoung8607 Feb 18, 2024
9a32751
Merge branch 'master' into vw-mlb
jyoung8607 Mar 3, 2024
edd60f4
regen CARS.md
jyoung8607 Mar 3, 2024
f9fcbb4
fix indentation
jyoung8607 Mar 3, 2024
8a92f88
put MLB back on lateral accel torque control
jyoung8607 Mar 5, 2024
b7088b7
Merge branch 'refs/heads/master' into vw-mlb
jyoung8607 Apr 1, 2024
7ea81df
Merge branch 'master' of https://github.com/commaai/openpilot into vw…
jyoung8607 May 20, 2024
743a787
regen CARS.md
jyoung8607 May 20, 2024
1c94cc3
bugfixes
jyoung8607 May 20, 2024
7ed7994
fix whitespace
jyoung8607 May 20, 2024
c6d2831
follow HCA_01 signal refactor
jyoung8607 May 20, 2024
9e3a3d5
bump opendbc
jyoung8607 May 20, 2024
e536b1c
placeholders for CI
jyoung8607 May 20, 2024
643a4ea
bring back TSK_06 cleanup and nonAdaptive support
jyoung8607 May 20, 2024
8ae27fb
remove wrong extra copy
jyoung8607 May 20, 2024
5c70bba
more concise
jyoung8607 May 20, 2024
c738365
update create_acc_hud_control function signature
jyoung8607 May 20, 2024
230ae8f
tweak UDS firmware placeholders
jyoung8607 May 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/CARS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A supported vehicle is one that just works when you install a comma device. All supported cars provide a better experience than any stock system. Supported vehicles reference the US market unless otherwise specified.

# 287 Supported Cars
# 289 Supported Cars

|Make|Model|Supported Package|ACC|No ACC accel below|No ALC below|Steering Torque|Resume from stop|<a href="##"><img width=2000></a>Hardware Needed<br>&nbsp;|Video|
|---|---|---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
Expand All @@ -13,10 +13,12 @@ A supported vehicle is one that just works when you install a comma device. All
|Acura|RDX 2019-22|All|openpilot available[<sup>1</sup>](#footnotes)|0 mph|3 mph|[![star](assets/icon-star-empty.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 Honda Bosch A connector<br>- 1 RJ45 cable (7 ft)<br>- 1 comma 3X<br>- 1 comma power v2<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Acura&model=RDX 2019-22">Buy Here</a></sub></details>||
|Audi|A3 2014-19|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=A3 2014-19">Buy Here</a></sub></details>||
|Audi|A3 Sportback e-tron 2017-18|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=A3 Sportback e-tron 2017-18">Buy Here</a></sub></details>||
|Audi|A4 2015-16|Adaptive Cruise Control (ACC) & Lane Assist|openpilot[<sup>12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=A4 2015-16">Buy Here</a></sub></details>||
|Audi|Q2 2018|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=Q2 2018">Buy Here</a></sub></details>||
|Audi|Q3 2019-23|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=Q3 2019-23">Buy Here</a></sub></details>||
|Audi|RS3 2018|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=RS3 2018">Buy Here</a></sub></details>||
|Audi|S3 2015-17|Adaptive Cruise Control (ACC) & Lane Assist|openpilot available[<sup>1,12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=S3 2015-17">Buy Here</a></sub></details>||
|Audi|S4 2015-16|Adaptive Cruise Control (ACC) & Lane Assist|openpilot[<sup>12</sup>](#footnotes)|0 mph|0 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-full.svg)](##)|<details><summary>Parts</summary><sub>- 1 J533 connector<br>- 1 USB-C coupler<br>- 1 comma 3X<br>- 1 harness box<br>- 1 long OBD-C cable<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Audi&model=S4 2015-16">Buy Here</a></sub></details>||
|Chevrolet|Bolt EUV 2022-23|Premier or Premier Redline Trim without Super Cruise Package|openpilot available[<sup>1</sup>](#footnotes)|3 mph|6 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-empty.svg)](##)|<details><summary>Parts</summary><sub>- 1 GM connector<br>- 1 comma 3X<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chevrolet&model=Bolt EUV 2022-23">Buy Here</a></sub></details>|<a href="https://youtu.be/xvwzGMUA210" target="_blank"><img height="18px" src="assets/icon-youtube.svg"></img></a>|
|Chevrolet|Bolt EV 2022-23|2LT Trim with Adaptive Cruise Control Package|openpilot available[<sup>1</sup>](#footnotes)|3 mph|6 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-empty.svg)](##)|<details><summary>Parts</summary><sub>- 1 GM connector<br>- 1 comma 3X<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chevrolet&model=Bolt EV 2022-23">Buy Here</a></sub></details>||
|Chevrolet|Equinox 2019-22|Adaptive Cruise Control (ACC)|openpilot available[<sup>1</sup>](#footnotes)|3 mph|6 mph|[![star](assets/icon-star-full.svg)](##)|[![star](assets/icon-star-empty.svg)](##)|<details><summary>Parts</summary><sub>- 1 GM connector<br>- 1 comma 3X<br>- 1 harness box<br>- 1 mount<br>- 1 right angle OBD-C cable (1.5 ft)<br><a href="https://comma.ai/shop/comma-3x.html?make=Chevrolet&model=Equinox 2019-22">Buy Here</a></sub></details>||
Expand Down
2 changes: 1 addition & 1 deletion opendbc
2 changes: 1 addition & 1 deletion panda
Submodule panda updated 60 files
+1 −1 .github/workflows/drivers.yaml
+2 −2 .github/workflows/repo.yml
+12 −9 .github/workflows/test.yaml
+3 −3 .pre-commit-config.yaml
+52 −24 Dockerfile
+2 −2 board/boards/black.h
+1 −1 board/boards/board_declarations.h
+1 −1 board/boards/cuatro.h
+2 −2 board/boards/dos.h
+1 −1 board/boards/grey.h
+2 −2 board/boards/red.h
+1 −1 board/boards/red_chiplet.h
+2 −2 board/boards/tres.h
+2 −2 board/boards/uno.h
+2 −2 board/boards/white.h
+1 −1 board/bootstub_declarations.h
+1 −1 board/debug/README.md
+1 −1 board/drivers/bootkick.h
+3 −3 board/drivers/bxcan.h
+2 −2 board/drivers/clock_source.h
+3 −3 board/drivers/fake_siren.h
+7 −7 board/drivers/fdcan.h
+3 −3 board/drivers/gpio.h
+10 −10 board/drivers/harness.h
+1 −1 board/drivers/interrupts.h
+3 −5 board/drivers/spi.h
+101 −82 board/drivers/usb.h
+1 −1 board/jungle/boards/board_v1.h
+8 −8 board/jungle/boards/board_v2.h
+2 −2 board/main.c
+1 −1 board/main_declarations.h
+3 −1 board/safety.h
+2 −3 board/safety/safety_chrysler.h
+1 −5 board/safety/safety_gm.h
+1 −2 board/safety/safety_honda.h
+1 −1 board/safety/safety_subaru.h
+84 −1 board/safety/safety_volkswagen_common.h
+163 −0 board/safety/safety_volkswagen_mlb.h
+3 −57 board/safety/safety_volkswagen_mqb.h
+2 −2 board/stm32f4/clock.h
+2 −2 board/stm32f4/lluart.h
+2 −2 board/stm32f4/llusb.h
+4 −4 board/stm32h7/clock.h
+4 −4 board/stm32h7/lladc.h
+4 −4 board/stm32h7/llfdcan.h
+5 −5 board/stm32h7/lli2c.h
+1 −1 board/stm32h7/llspi.h
+1 −1 board/stm32h7/lluart.h
+1 −1 board/stm32h7/llusb.h
+3 −4 pyproject.toml
+2 −3 python/__init__.py
+2 −7 python/uds.py
+1 −1 tests/misra/install.sh
+3 −5 tests/misra/suppressions.txt
+6 −10 tests/misra/test_misra.sh
+4 −2 tests/misra/test_mutation.py
+2 −1 tests/safety/common.py
+1 −1 tests/safety/test_subaru.py
+153 −0 tests/safety/test_volkswagen_mlb.py
+1 −1 tests/som/test_bootkick.py
1 change: 1 addition & 0 deletions release/files_common
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ opendbc/toyota_adas.dbc
opendbc/toyota_tss2_adas.dbc

opendbc/vw_golf_mk4.dbc
opendbc/vw_mlb.dbc
opendbc/vw_mqb_2010.dbc

opendbc/tesla_can.dbc
Expand Down
1 change: 1 addition & 0 deletions selfdrive/car/tests/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class CarTestRoute(NamedTuple):
CarTestRoute("a459f4556782eba1|2021-09-19--09-48-00", VOLKSWAGEN.VOLKSWAGEN_TRANSPORTER_T61),
CarTestRoute("0cd0b7f7e31a3853|2021-11-18--00-38-32", VOLKSWAGEN.VOLKSWAGEN_TROC_MK1),
CarTestRoute("07667b885add75fd|2021-01-23--19-48-42", VOLKSWAGEN.AUDI_A3_MK3),
CarTestRoute("6b170e78d823566b|2023-01-18--21-28-08", VOLKSWAGEN.AUDI_A4_MK4),
CarTestRoute("6c6b466346192818|2021-06-06--14-17-47", VOLKSWAGEN.AUDI_Q2_MK1),
CarTestRoute("0cd0b7f7e31a3853|2021-12-03--03-12-05", VOLKSWAGEN.AUDI_Q3_MK2),
CarTestRoute("8f205bdd11bcbb65|2021-03-26--01-00-17", VOLKSWAGEN.SEAT_ATECA_MK1),
Expand Down
1 change: 1 addition & 0 deletions selfdrive/car/torque_data/override.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ legend = ["LAT_ACCEL_FACTOR", "MAX_LAT_ACCEL_MEASURED", "FRICTION"]
"CHEVROLET_SILVERADO" = [1.9, 1.9, 0.112]
"CHEVROLET_TRAILBLAZER" = [1.33, 1.9, 0.16]
"CHEVROLET_EQUINOX" = [2.5, 2.5, 0.05]
"AUDI_A4_MK4" = [1.4, 1.4, 0.1]
"VOLKSWAGEN_CADDY_MK3" = [1.2, 1.2, 0.1]
"VOLKSWAGEN_PASSAT_NMS" = [2.5, 2.5, 0.1]
"VOLKSWAGEN_SHARAN_MK2" = [2.5, 2.5, 0.1]
Expand Down
10 changes: 8 additions & 2 deletions selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from openpilot.common.realtime import DT_CTRL
from openpilot.selfdrive.car import apply_driver_steer_torque_limits
from openpilot.selfdrive.car.interfaces import CarControllerBase
from openpilot.selfdrive.car.volkswagen import mqbcan, pqcan
from openpilot.selfdrive.car.volkswagen import mlbcan, mqbcan, pqcan
from openpilot.selfdrive.car.volkswagen.values import CANBUS, CarControllerParams, VolkswagenFlags

VisualAlert = car.CarControl.HUDControl.VisualAlert
Expand All @@ -16,10 +16,16 @@ class CarController(CarControllerBase):
def __init__(self, dbc_name, CP, VM):
self.CP = CP
self.CCP = CarControllerParams(CP)
self.CCS = pqcan if CP.flags & VolkswagenFlags.PQ else mqbcan
self.packer_pt = CANPacker(dbc_name)
self.ext_bus = CANBUS.pt if CP.networkLocation == car.CarParams.NetworkLocation.fwdCamera else CANBUS.cam

if CP.flags & VolkswagenFlags.PQ:
self.CCS = pqcan
elif CP.flags & VolkswagenFlags.MLB:
self.CCS = mlbcan
else:
self.CCS = mqbcan

self.apply_steer_last = 0
self.gra_acc_counter_last = None
self.frame = 0
Expand Down
Loading
Loading