Skip to content

Commit 054054e

Browse files
authored
Merge pull request #638 from JuliaControl/fb/te
use timeevol function instead of property
2 parents 5abb72f + 0cc845e commit 054054e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/connections.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function feedback(L::TransferFunction{<:TimeEvolution,T}) where T<:SisoRational
170170
end
171171
P = numpoly(L)
172172
Q = denpoly(L)
173-
tf(P, P+Q, L.timeevol)
173+
tf(P, P+Q, timeevol(L))
174174
end
175175

176176
function feedback(L::TransferFunction{TE, T}) where {TE<:TimeEvolution, T<:SisoZpk}
@@ -183,12 +183,12 @@ function feedback(L::TransferFunction{TE, T}) where {TE<:TimeEvolution, T<:SisoZ
183183
kden = denpol[end] # Get coeff of s^n
184184
# Create siso system
185185
sisozpk = T(L.matrix[1].z, roots(denpol), k/kden)
186-
return TransferFunction{TE,T}(fill(sisozpk,1,1), L.timeevol)
186+
return TransferFunction{TE,T}(fill(sisozpk,1,1), timeevol(L))
187187
end
188188

189189
function feedback(sys::Union{AbstractStateSpace, DelayLtiSystem})
190190
ninputs(sys) != noutputs(sys) && error("Use feedback(sys1, sys2) if number of inputs != outputs")
191-
feedback(sys,ss(Matrix{numeric_type(sys)}(I,size(sys)...), sys.timeevol))
191+
feedback(sys,ss(Matrix{numeric_type(sys)}(I,size(sys)...), timeevol(sys)))
192192
end
193193

194194
"""
@@ -320,7 +320,7 @@ end
320320
"""
321321
function feedback2dof(P::TransferFunction,R,S,T)
322322
!issiso(P) && error("Feedback not implemented for MIMO systems")
323-
tf(conv(poly2vec(numpoly(P)[1]),T),zpconv(poly2vec(denpoly(P)[1]),R,poly2vec(numpoly(P)[1]),S), P.timeevol)
323+
tf(conv(poly2vec(numpoly(P)[1]),T),zpconv(poly2vec(denpoly(P)[1]),R,poly2vec(numpoly(P)[1]),S), timeevol(P))
324324
end
325325

326326
feedback2dof(B,A,R,S,T) = tf(conv(B,T),zpconv(A,R,B,S))

0 commit comments

Comments
 (0)