mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-24 20:52:08 +08:00
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
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user