Skip to content

Commit f161c4e

Browse files
committed
Fixed repeated use of m
1 parent aed090e commit f161c4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MPC_linear_tracking.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
# VEHICLE MODELS
2626

2727
# Vehicle mass [kg]
28-
M = 1.0
28+
m = 1.0
2929

3030
# Discrete time vehicle model
3131
F = np.array([[1, T], [0, 1]])
32-
G = np.array([[0], [T / M]])
32+
G = np.array([[0], [T / m]])
3333
n = G.shape[0]
3434

3535
# Continuous time vehicle model (for full-state feedback)
3636
A = np.array([[0, 1], [0, 0]])
37-
B = np.array([[0], [1 / M]])
37+
B = np.array([[0], [1 / m]])
3838

3939
# %%
4040
# UNCONSTRAINED MPC CONTROLLER DESIGN

0 commit comments

Comments
 (0)