Skip to content

Commit 07dcdd4

Browse files
committed
Fix of covar deprecation.
1 parent a5a710a commit 07dcdd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ControlSystems.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ include("plotting.jl")
156156
@deprecate norminf hinfnorm
157157

158158
function covar(D::Union{AbstractMatrix,UniformScaling}, R)
159-
@warn "This call is ambiguous and will be deprecated, use `covar(ss(D), R)` or `covar(ss(D, Ts), R)`"
160-
covar(ss(D, 1), R) # The implemented version assumed discrete time
159+
@warn "This call is deprecated due to ambiguity, use covar(ss(D), R) or covar(ss(D, Ts), R) instead"
160+
D*R*D'
161161
end
162162

163163

0 commit comments

Comments
 (0)