Skip to content

Commit b94518b

Browse files
committed
fix a bug
1 parent 94e03e1 commit b94518b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathTracking/model_predictive_speed_and_steer_control/model_predictive_speed_and_steer_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def get_linear_model_matrix(v, phi, delta):
101101
C = np.zeros(NX)
102102
C[0] = DT * v * math.sin(phi) * phi
103103
C[1] = - DT * v * math.cos(phi) * phi
104-
C[3] = - v * delta / (WB * math.cos(delta) ** 2)
104+
C[3] = - DT * v * delta / (WB * math.cos(delta) ** 2)
105105

106106
return A, B, C
107107

0 commit comments

Comments
 (0)