Update selfdrive/car/volkswagen/interface.py

Co-authored-by: Shane Smiskol <shane@smiskol.com>
pull/26656/head
Jason Young 2 years ago committed by GitHub
parent f117a1adf7
commit 14c7412bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/car/volkswagen/interface.py

@ -230,7 +230,7 @@ class CarInterface(CarInterfaceBase):
events.add(EventName.belowSteerSpeed)
if self.CS.CP.openpilotLongitudinalControl:
if ret.vEgo < self.CP.minEnableSpeed + 0.5:
if self.CP.minEnableSpeed > 0 and ret.vEgo < self.CP.minEnableSpeed + 2.0:
events.add(EventName.belowEngageSpeed)
if c.enabled and ret.vEgo < self.CP.minEnableSpeed:
events.add(EventName.speedTooLow)

Loading…
Cancel
Save