Skip to content

Commit 55d10fd

Browse files
committed
debug doc
1 parent 498b473 commit 55d10fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ The controller seems robust enough to variations on ``K`` coefficient. Starting
128128
inverted position, the closed-loop response to a step disturbances of 10° is also
129129
satisfactory:
130130

131-
```@example 1block is unnecessary. I guess you have added it to avoid the closure bug? That bug only appears if the captured variables have been modified in the function body before capture, which they have not been here.
132-
131+
```@example 1
133132
res_yd = sim!(nmpc, N, [180.0], plant=plant, x0=[π, 0], x̂0=[π, 0, 0], y_step=[10])
134133
plot(res_yd)
135134
savefig(ans, "plot4_NonLinMPC.svg"); nothing # hide

0 commit comments

Comments
 (0)