Skip to content

Commit af6f2e6

Browse files
committed
debug: correct arg in disturbedinput!
1 parent 78f50ba commit af6f2e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/controller/transcription.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ function con_nonlinprogeq!(
14121412
nk = get_nk(model, transcription)
14131413
D̂0 = mpc.D̂0
14141414
X̂0_Z̃ = @views Z̃[(nΔU+1):(nΔU+nX̂)]
1415-
disturbedinput!(Û0, mpc, estim, U0, X̂0_Z̃)
1415+
disturbedinput!(Û0, mpc, mpc.estim, U0, X̂0_Z̃)
14161416
@threadsif f_threads for j=1:Hp
14171417
if j < 2
14181418
x̂0_Z̃ = @views mpc.estim.x̂0[1:nx̂]
@@ -1531,7 +1531,7 @@ function con_nonlinprogeq!(
15311531
D̂0 = mpc.D̂0
15321532
X̂0_Z̃, K_Z̃ = @views Z̃[(nΔU+1):(nΔU+nX̂)], Z̃[(nΔU+nX̂+1):(nΔU+nX̂+nk*Hp)]
15331533
D̂temp = mpc.buffer.
1534-
disturbedinput!(Û0, mpc, estim, U0, X̂0_Z̃)
1534+
disturbedinput!(Û0, mpc, mpc.estim, U0, X̂0_Z̃)
15351535
@threadsif f_threads for j=1:Hp
15361536
if j < 2
15371537
x̂0_Z̃ = @views mpc.estim.x̂0[1:nx̂]

0 commit comments

Comments
 (0)