Refactor candidate checks for GMC Acadia and Buick Envision

This commit is contained in:
crazyb123
2026-10-23 20:02:54 +08:00
committed by GitHub
parent 814a7454e3
commit 41a670180f
+6 -1
View File
@@ -437,7 +437,12 @@ class CarInterface(CarInterfaceBase):
if candidate == CAR.CHEVROLET_MALIBU_HYBRID_CC and ret.enableGasInterceptorDEPRECATED:
ret.flags |= GMFlags.PEDAL_LONG.value
elif candidate in (CAR.GMC_ACADIA, CAR.BUICK_ENVISION_SDGM):
elif candidate == CAR.GMC_ACADIA:
ret.minEnableSpeed = -1. # engage speed is decided by pcm
ret.steerActuatorDelay = 0.2
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)
elif candidate == CAR.BUICK_ENVISION_SDGM:
ret.minEnableSpeed = -1. # engage speed is decided by pcm
ret.steerActuatorDelay = 0.2
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)