Skip to content

Commit f354040

Browse files
committed
idem
1 parent 369cad9 commit f354040

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/controller/transcription.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,11 +1177,11 @@ function predict!(
11771177
û0 = @views Û0[(1 + nu*(j-1)):(nu*j)]
11781178
k0 = @views K0[(1 + nk*(j-1)):(nk*j)]
11791179
x̂0next = @views X̂0[(1 + nx̂*(j-1)):(nx̂*j)]
1180-
f̂!(x̂0next, û0, k0, mpc.estim, model, x̂0, u0, d0)
1180+
f̂!(x̂0next, û0, k0, mpc.estim, model, x̂0, u0, d̂0)
11811181
x̂0 = @views X̂0[(1 + nx̂*(j-1)):(nx̂*j)]
11821182
d̂0 = @views D̂0[(1 + nd*(j-1)):(nd*j)]
11831183
ŷ0 = @views Ŷ0[(1 + ny*(j-1)):(ny*j)]
1184-
ĥ!(ŷ0, mpc.estim, model, x̂0, d0)
1184+
ĥ!(ŷ0, mpc.estim, model, x̂0, d̂0)
11851185
end
11861186
Ŷ0 .+= mpc.F # F = Ŷs if mpc.estim is an InternalModel, else F = 0.
11871187
x̂0end .= x̂0
@@ -1217,7 +1217,7 @@ function predict!(
12171217
x̂0 = @views X̂0[(1 + nx̂*(j-1)):(nx̂*j)]
12181218
d̂0 = @views D̂0[(1 + nd*(j-1)):(nd*j)]
12191219
ŷ0 = @views Ŷ0[(1 + ny*(j-1)):(ny*j)]
1220-
ĥ!(ŷ0, mpc.estim, model, x̂0, d0)
1220+
ĥ!(ŷ0, mpc.estim, model, x̂0, d̂0)
12211221
end
12221222
Ŷ0 .+= mpc.F # F = Ŷs if mpc.estim is an InternalModel, else F = 0.
12231223
x̂0end .= x̂0

0 commit comments

Comments
 (0)