diff --git a/opendbc/car/gm/interface.py b/opendbc/car/gm/interface.py index 1cdb04fa..1cb807b2 100755 --- a/opendbc/car/gm/interface.py +++ b/opendbc/car/gm/interface.py @@ -53,10 +53,10 @@ class CarInterface(CarInterfaceBase): # This has big effect on the stability about 0 (noise when going straight) non_linear_torque_params = NON_LINEAR_TORQUE_PARAMS.get(self.CP.carFingerprint) assert non_linear_torque_params, "The params are not defined" - a, b, c, _ = non_linear_torque_params + a, b, c, d = non_linear_torque_params sig_input = a * lateral_acceleration sig = np.sign(sig_input) * (1 / (1 + exp(-fabs(sig_input))) - 0.5) - steer_torque = (sig * b) + (lateral_acceleration * c) + steer_torque = (sig * b) + (lateral_acceleration * c) + d return float(steer_torque) lataccel_values = np.arange(-5.0, 5.0, 0.01)