Set lkas enable speed to 52 kph

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
pull/988/head
Jafar Al-Gharaibeh 5 years ago committed by Adeeb Shihadeh
parent e7fd994bf6
commit 8eb82d1994
  1. 2
      selfdrive/car/mazda/carstate.py
  2. 8
      selfdrive/car/mazda/values.py

@ -63,7 +63,7 @@ class CarState(CarStateBase):
# On if no driver torque the last 5 seconds # On if no driver torque the last 5 seconds
handsoff = cp.vl["STEER_RATE"]['HANDS_OFF_5_SECONDS'] == 1 handsoff = cp.vl["STEER_RATE"]['HANDS_OFF_5_SECONDS'] == 1
# LKAS is enabled at 50kph going up and disabled at 45kph going down # LKAS is enabled at 52kph going up and disabled at 45kph going down
if speed_kph > LKAS_LIMITS.ENABLE_SPEED: if speed_kph > LKAS_LIMITS.ENABLE_SPEED:
self.lkas_on = True self.lkas_on = True

@ -11,16 +11,16 @@ class SteerLimitParams:
STEER_DELTA_UP = 10 # torque increase per refresh STEER_DELTA_UP = 10 # torque increase per refresh
STEER_DELTA_DOWN = 20 # torque decrease per refresh STEER_DELTA_DOWN = 20 # torque decrease per refresh
STEER_DRIVER_ALLOWANCE = 15 # allowed driver torque before start limiting STEER_DRIVER_ALLOWANCE = 15 # allowed driver torque before start limiting
STEER_DRIVER_MULTIPLIER = 1 # weight driver torque heavily STEER_DRIVER_MULTIPLIER = 1 # weight driver torque
STEER_DRIVER_FACTOR = 1 # from dbc STEER_DRIVER_FACTOR = 1 # from dbc
class CAR: class CAR:
CX5 = "Mazda CX-5 2017" CX5 = "Mazda CX-5 2017"
class LKAS_LIMITS: class LKAS_LIMITS:
STEER_THRESHOLD = 20 STEER_THRESHOLD = 15
DISABLE_SPEED = 45 DISABLE_SPEED = 45 #kph
ENABLE_SPEED = 50 ENABLE_SPEED = 52 #kph
FINGERPRINTS = { FINGERPRINTS = {
CAR.CX5: [ CAR.CX5: [

Loading…
Cancel
Save