Skip to content

Commit 17c5867

Browse files
authored
gangoffour accepts ss (#322)
1 parent 31c6c68 commit 17c5867

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/analysis.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ Given a transfer function describing the Plant `P` and a transferfunction descri
464464
`T = PC/(1+PC)` Complementary sensitivity function
465465
466466
Only supports SISO systems"""
467-
function gangoffour(P::TransferFunction,C::TransferFunction)
467+
function gangoffour(P::LTISystem,C::LTISystem)
468468
if P.nu + P.ny + C.nu + C.ny > 4
469469
error("gangoffour only supports SISO systems")
470470
end

test/test_pid_design.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
P = tf(1,[1,1])^4
55
gangoffourplot(P,tf(1))
6+
gangoffourplot(ss(P),ss(1))
67
ωp = 0.8
78
kp,ki,C = loopshapingPI(P,ωp,phasemargin=60, doplot=true)
89
@test kp 0.82274734724854

0 commit comments

Comments
 (0)