Skip to content

Commit 98bb72c

Browse files
fixup! test: fix initialization of model in tests
1 parent 774fd12 commit 98bb72c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/split_parameters.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ function SystemModel(u = nothing; name = :model)
165165
systems = [torque, inertia1, inertia2, spring, damper, u])
166166
end
167167
ODESystem(eqs, t; systems = [torque, inertia1, inertia2, spring, damper],
168-
name, guesses = [spring.flange_a.phi => 1.0])
168+
name)
169169
end
170170

171171
model = SystemModel() # Model with load disturbance
172172
@named d = Step(start_time = 1.0, duration = 10.0, offset = 0.0, height = 1.0) # Disturbance
173173
model_outputs = [model.inertia1.w, model.inertia2.w, model.inertia1.phi, model.inertia2.phi] # This is the state realization we want to control
174174
inputs = [model.torque.tau.u]
175175
matrices, ssys = ModelingToolkit.linearize(
176-
wr(model), inputs, model_outputs; op = Dict(model.torque.tau.u => 0.0))
176+
wr(model), inputs, model_outputs)
177177

178178
# Design state-feedback gain using LQR
179179
# Define cost matrices

0 commit comments

Comments
 (0)