Skip to content

Commit

Permalink
Fix typo (#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane authored and rbiasini committed Nov 26, 2019
1 parent 812f93a commit 84ef9d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/controls/lib/latcontrol_indi.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, CP):
self.A_K = A - np.dot(K, C)
self.x = np.matrix([[0.], [0.], [0.]])

self.enfore_rate_limit = CP.carName == "toyota"
self.enforce_rate_limit = CP.carName == "toyota"

self.RC = CP.lateralTuning.indi.timeConstant
self.G = CP.lateralTuning.indi.actuatorEffectiveness
Expand Down Expand Up @@ -81,7 +81,7 @@ def update(self, active, v_ego, angle_steers, angle_steers_rate, eps_torque, ste
delta_u = g_inv * accel_error

# Enforce rate limit
if self.enfore_rate_limit:
if self.enforce_rate_limit:
steer_max = float(SteerLimitParams.STEER_MAX)
new_output_steer_cmd = steer_max * (self.delayed_output + delta_u)
prev_output_steer_cmd = steer_max * self.output_steer
Expand Down

0 comments on commit 84ef9d5

Please sign in to comment.