Skip to content

Commit d507cfe

Browse files
committed
Use Dd instead of Gd for observer measurement function.
1 parent 9a81963 commit d507cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simulation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Simulation(mpc::Union{MPC,ExplicitMPC}, scenario::Scenario)
4343
ny = has_observer ? size(mpc.state_observer.C,1) : mpc.model.ny
4444
if isnothing(scenario.get_measurement)
4545
get_measurement = if has_observer
46-
(x,d) -> mpc.state_observer.C*x+mpc.state_observer.Gd*d+mpc.state_observer.h_offset
46+
(x,d) -> mpc.state_observer.C*x+mpc.state_observer.Dd*d+mpc.state_observer.h_offset
4747
else
4848
(x,d) -> mpc.model.C*x+mpc.model.Dd*d+mpc.model.h_offset
4949
end

0 commit comments

Comments
 (0)