Skip to content

Commit 3ad3e59

Browse files
committed
debug: correct variable
1 parent 4d186f6 commit 3ad3e59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ext/LinearMPCext.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Base.convert(::Type{LinearMPC.MPC}, mpc::ModelPredictiveControl.LinMPC)
2020
xo = estim.x̂op
2121
uo = model.uop
2222
yo = model.yop
23-
!iszero(y0) && error("LinearMPC does not support non-zero output operating points.")
23+
!iszero(yo) && error("LinearMPC does not support non-zero output operating points.")
2424
LinearMPC.set_operating_point!(newmpc; xo, uo, relinearize=false)
2525
# --- State observer parameters ---
2626
Q, R = estim.cov.Q̂, estim.cov.

0 commit comments

Comments
 (0)