Skip to content

Commit

Permalink
one line
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed May 14, 2022
1 parent 25b08df commit 26bf152
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfdrive/controls/lib/latcontrol_torque.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def update(self, active, CS, VM, params, last_actuators, desired_curvature, desi
# convert friction into lateral accel units for feedforward
friction_compensation = interp(desired_lateral_jerk, [-JERK_THRESHOLD, JERK_THRESHOLD], [-self.friction, self.friction])
ff += friction_compensation / self.kf
output_torque = self.pid.update(error,
error_rate=error_rate,
output_torque = self.pid.update(error, error_rate=error_rate,
override=CS.steeringPressed, feedforward=ff,
speed=CS.vEgo,
freeze_integrator=CS.steeringRateLimited)
Expand Down

0 comments on commit 26bf152

Please sign in to comment.