Skip to content

Commit a191134

Browse files
committed
changed: lower case u in variable for consistency
1 parent b818d7b commit a191134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controller/execute.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ function initpred!(mpc::PredictiveController, model::LinModel, d, D̂, R̂y, R̂
212212
mul!(F, mpc.G, mpc.d0, 1, 1) # F = F + G*d0
213213
mul!(F, mpc.J, mpc.D̂0, 1, 1) # F = F + J*D̂0
214214
end
215-
Cy, Cu, M_Hp_Ẽ, L_Hp_P̃U = mpc.buffer.Ŷ, mpc.buffer.U, mpc.buffer.Ẽ, mpc.buffer.P̃u
215+
Cy, Cu, M_Hp_Ẽ, L_Hp_P̃u = mpc.buffer.Ŷ, mpc.buffer.U, mpc.buffer.Ẽ, mpc.buffer.P̃u
216216
q̃, r = mpc.q̃, mpc.r
217217
q̃ .= 0
218218
r .= 0
@@ -226,8 +226,8 @@ function initpred!(mpc::PredictiveController, model::LinModel, d, D̂, R̂y, R̂
226226
# --- input setpoint tracking term ---
227227
if !mpc.weights.iszero_L_Hp[]
228228
Cu .= mpc.Tu_lastu0 .+ mpc.Uop .- R̂u
229-
mul!(L_Hp_P̃U, mpc.weights.L_Hp, mpc.P̃u)
230-
mul!(q̃, L_Hp_P̃U', Cu, 1, 1) # q̃ = q̃ + L_Hp*P̃u'*Cu
229+
mul!(L_Hp_P̃u, mpc.weights.L_Hp, mpc.P̃u)
230+
mul!(q̃, L_Hp_P̃u', Cu, 1, 1) # q̃ = q̃ + L_Hp*P̃u'*Cu
231231
r .+= dot(Cu, mpc.weights.L_Hp, Cu) # r = r + Cu'*L_Hp*Cu
232232
end
233233
# --- finalize ---

0 commit comments

Comments
 (0)