|
|
@ -96,7 +96,7 @@ class CarController(): |
|
|
|
### STEER ### |
|
|
|
### STEER ### |
|
|
|
|
|
|
|
|
|
|
|
if (frame % P.STEER_STEP) == 0: |
|
|
|
if (frame % P.STEER_STEP) == 0: |
|
|
|
lkas_enabled = enabled and not CS.steer_not_allowed and CS.out.vEgo > P.MIN_STEER_SPEED |
|
|
|
lkas_enabled = enabled and not CS.steer_warning and CS.out.vEgo > P.MIN_STEER_SPEED |
|
|
|
if lkas_enabled: |
|
|
|
if lkas_enabled: |
|
|
|
new_steer = actuators.steer * P.STEER_MAX |
|
|
|
new_steer = actuators.steer * P.STEER_MAX |
|
|
|
apply_steer = apply_std_steer_torque_limits(new_steer, self.apply_steer_last, CS.out.steeringTorque, P) |
|
|
|
apply_steer = apply_std_steer_torque_limits(new_steer, self.apply_steer_last, CS.out.steeringTorque, P) |
|
|
|