Skip to content

Commit b1f2606

Browse files
committed
minor doc correction
1 parent 60a9a18 commit b1f2606

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/src/manual/nonlinmpc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ plot(res, plotu=false)
7373
savefig(ans, "plot1_NonLinMPC.svg"); nothing # hide
7474
```
7575

76-
The [`setname!`](@ref) function allows customizing the Y-axis labels.
77-
7876
![plot1_NonLinMPC](plot1_NonLinMPC.svg)
7977

78+
The [`setname!`](@ref) function allows customizing the Y-axis labels.
79+
8080
## Nonlinear Model Predictive Controller
8181

8282
An [`UnscentedKalmanFilter`](@ref) estimates the plant state :

src/controller/execute.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ updatestate!(::PredictiveController, _ ) = throw(ArgumentError("missing measured
498498
"""
499499
setstate!(mpc::PredictiveController, x̂) -> mpc
500500
501-
Set the estimate at `mpc.estim.x̂`.
501+
Set `mpc.estim.x̂0` to `x̂ - estim.x̂op` from the argument `x̂`.
502502
"""
503503
setstate!(mpc::PredictiveController, x̂) = (setstate!(mpc.estim, x̂); return mpc)
504504

0 commit comments

Comments
 (0)