Skip to content

Commit

Permalink
Fixed repeated use of m
Browse files Browse the repository at this point in the history
  • Loading branch information
botprof committed Feb 17, 2022
1 parent aed090e commit f161c4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MPC_linear_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
# VEHICLE MODELS

# Vehicle mass [kg]
M = 1.0
m = 1.0

# Discrete time vehicle model
F = np.array([[1, T], [0, 1]])
G = np.array([[0], [T / M]])
G = np.array([[0], [T / m]])
n = G.shape[0]

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

# %%
# UNCONSTRAINED MPC CONTROLLER DESIGN
Expand Down

0 comments on commit f161c4e

Please sign in to comment.