Skip to content

Commit

Permalink
rm .sys accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Oct 12, 2023
1 parent 2968fbc commit 9823b1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/flexible_servo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ P,K,G = flexible_servo_loop(kp=0.1, kv=250, ki=15, Tf=0.001)
w = 2pi*exp10.(LinRange(-2, 2, 400)) # Frequency vector

plot(
# plot(step(c2d(G.sys, 0.001), 3)),
# plot(step(c2d(G, 0.001), 3)),
plot(step(G, 3, method=:zoh)),
bodeplot(P, w, hz=true, plotphase=false, lab="P", ylabel=permutedims(output_names(P))),
bodeplot(G, w, hz=true, plotphase=false, lab="Closed loop", legend=:bottomleft, ylabel=permutedims(output_names(G))),
bodeplot(P, w, hz=true, plotphase=false, title="P"),
bodeplot(G, w, hz=true, plotphase=false, title="Closed loop", legend=:bottomleft),
layout = (1,3),
title = "",
size = (1000, 1000),
Expand Down
2 changes: 1 addition & 1 deletion test/test_manual_hinf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Gsyn = partition(G, u = [:u], y = [:y]) # You can provide either u or w, and eit
K, γ, info = hinfsynthesize(Gsyn, γrel=1.001, interval = (0.1, 20), transform=false)


Gsyn2 = hinfpartition(P, We.sys, Wu.sys, [])
Gsyn2 = hinfpartition(P, We, Wu, [])
K2, γ2 = hinfsynthesize(Gsyn2, γrel=1.001, interval = (0.1, 20), transform=false)

@test γ 0.3148 atol=1e-2 # value by slicot
Expand Down

0 comments on commit 9823b1a

Please sign in to comment.