VW MQB: Speed limiter is nonAdaptive (#31954)

* VW MQB: Speed limiter is nonAdaptive

* revise

* Update selfdrive/car/volkswagen/carstate.py

* Update selfdrive/car/volkswagen/carstate.py

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c9685dd297
pull/32199/head
Jason Young 1 year ago committed by GitHub
parent b0e15f4dc6
commit d7c50dbf6f
  1. 2
      selfdrive/car/volkswagen/carstate.py

@ -119,6 +119,8 @@ class CarState(CarStateBase):
# currently regulating speed (3), driver accel override (4), brake only (5)
ret.cruiseState.available = pt_cp.vl["TSK_06"]["TSK_Status"] in (2, 3, 4, 5)
ret.cruiseState.enabled = pt_cp.vl["TSK_06"]["TSK_Status"] in (3, 4, 5)
# Speed limiter mode; ECM faults if we command ACC while not pcmCruise
ret.cruiseState.nonAdaptive = bool(pt_cp.vl["TSK_06"]["TSK_Limiter_ausgewaehlt"])
ret.accFaulted = pt_cp.vl["TSK_06"]["TSK_Status"] in (6, 7)
self.esp_hold_confirmation = bool(pt_cp.vl["ESP_21"]["ESP_Haltebestaetigung"])

Loading…
Cancel
Save