Skip to content

Commit a3647b4

Browse files
committed
debug: typo correction
1 parent 3f17f0e commit a3647b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/execute.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ special cases in which `Ŷe`, `Ue` and `Ū` are not mutated:
390390
"""
391391
function extended_predictions!(Ŷe, Ue, Ū, mpc, model, Ŷ0, ΔŨ)
392392
ny, nu = model.ny, model.nu
393-
nocustomfonctions = (mpc.weights.iszero_E && iszero_nc(mpc))
393+
nocustomfcts = (mpc.weights.iszero_E && iszero_nc(mpc))
394394
# --- extended output predictions Ŷe = [ŷ(k); Ŷ] ---
395-
if !(mpc.weights.iszero_M_Hp[] && mpc.nocustomfcts)
395+
if !(mpc.weights.iszero_M_Hp[] && nocustomfcts)
396396
Ŷe[1:ny] .= mpc.
397397
Ŷe[ny+1:end] .= Ŷ0 .+ mpc.Yop
398398
end

0 commit comments

Comments
 (0)