Skip to content

Commit bae6ed9

Browse files
committed
small doc correction
1 parent 9952577 commit bae6ed9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/predictive_control.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,14 @@ Closed-loop simulation of `mpc` controller for `N` time steps, default to setpoi
340340
- `d_step = zeros(plant.nd)` : step disturbance on measured dist. ``\mathbf{d}``
341341
- `d_noise = zeros(plant.nd)` : additive gaussian noise on measured dist. ``\mathbf{d}``
342342
- `x0 = zeros(plant.nx)` : plant initial state ``\mathbf{x}(0)``
343-
- `x̂0 = nothing` : `mpc.estim` state estimator initial state ``\mathbf{x̂}(0)``, if `nothing`
344-
[`initstate!(::PredictiveController)`](@ref) is used to init ``\mathbf{x̂}``.
345-
- `lastu = plant.uop` : last manipulated input ``\mathbf{u}`` for ``\mathbf{x̂}`` initialization
343+
- `x̂0 = nothing` : `mpc.estim` state estimator initial state ``\mathbf{x̂}(0)``, if `nothing`
344+
then ``\mathbf{x̂}`` is initialized with [`initstate!`](@ref)
345+
- `lastu = plant.uop` : last plant input ``\mathbf{u}`` for ``\mathbf{x̂}`` initialization
346346
347347
"""
348348
function sim(
349349
mpc::PredictiveController,
350-
N::Int = mpc.Hp + 10,
350+
N ::Int = mpc.Hp + 10,
351351
ry::Vector{<:Real} = mpc.estim.model.yop .+ 1,
352352
d ::Vector{<:Real} = mpc.estim.model.dop;
353353
plant::SimModel = mpc.estim.model,

0 commit comments

Comments
 (0)