Skip to content

Commit a5a710a

Browse files
committed
Changed from error to warning for covar of matrix system.
1 parent b2d2254 commit a5a710a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ControlSystems.jl

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

158158
function covar(D::Union{AbstractMatrix,UniformScaling}, R)
159-
error("This call is ambiguous, use `covar(ss(D), R)` or `covar(ss(D, Ts), 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
160161
end
161162

162163

0 commit comments

Comments
 (0)