Skip to content

Commit 35dc7a3

Browse files
committed
debug: all offsets
1 parent 9442a30 commit 35dc7a3

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
@@ -22,7 +22,7 @@ function Base.convert(::Type{LinearMPC.MPC}, mpc::ModelPredictiveControl.LinMPC)
2222
yoff = model.yop
2323
xoff = estim.x̂op
2424
foff = estim.f̂op
25-
LinearMPC.set_offset!(newmpc; uo=uoff, ho=yoff)
25+
LinearMPC.set_offset!(newmpc; uo=uoff, yo=yoff, dooff=doff, xo=xoff, fo=foff)
2626
# --- State observer parameters ---
2727
Q, R = estim.cov.Q̂, estim.cov.
2828
set_state_observer!(newmpc; C=estim.Ĉm, Q, R)

0 commit comments

Comments
 (0)