GM camera ACC: always set long tune (#26892)

* GM: set long tune for camera car w/o exp. mode

* same tuning

* update refs

Co-authored-by: Shane Smiskol <shane@smiskol.com>
pull/26894/head^2
Tim Wilson 2 years ago committed by GitHub
parent a421c9464e
commit a40efbdfcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      selfdrive/car/gm/interface.py
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -68,12 +68,7 @@ class CarInterface(CarInterfaceBase):
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_HW_CAM ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_HW_CAM
ret.minEnableSpeed = 5 * CV.KPH_TO_MS ret.minEnableSpeed = 5 * CV.KPH_TO_MS
if experimental_long: # Tuning for experimental long
ret.pcmCruise = False
ret.openpilotLongitudinalControl = True
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_HW_CAM_LONG
# Tuning
ret.longitudinalTuning.kpV = [2.0, 1.5] ret.longitudinalTuning.kpV = [2.0, 1.5]
ret.longitudinalTuning.kiV = [0.72] ret.longitudinalTuning.kiV = [0.72]
ret.stopAccel = -2.0 ret.stopAccel = -2.0
@ -82,6 +77,11 @@ class CarInterface(CarInterfaceBase):
ret.vEgoStarting = 0.25 ret.vEgoStarting = 0.25
ret.longitudinalActuatorDelayUpperBound = 0.5 ret.longitudinalActuatorDelayUpperBound = 0.5
if experimental_long:
ret.pcmCruise = False
ret.openpilotLongitudinalControl = True
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_GM_HW_CAM_LONG
else: # ASCM, OBD-II harness else: # ASCM, OBD-II harness
ret.openpilotLongitudinalControl = True ret.openpilotLongitudinalControl = True
ret.networkLocation = NetworkLocation.gateway ret.networkLocation = NetworkLocation.gateway

@ -1 +1 @@
557ffbf5a1c9cafba1ff8d6f3e2642df98b2d6e6 6d30c77af7b3210b03f65b433c0a043a96ee39bc
Loading…
Cancel
Save