Skip to content

Commit ab56357

Browse files
committed
modify undetectable system test (take 3)
1 parent 7adb287 commit ab56357

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_state_estim.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ sys = [ tf(1.90,[18.0,1]) tf(1.90,[18.0,1]) tf(1.90,[18.0,1]);
3333
@test_throws ErrorException SteadyKalmanFilter(linmodel1, nint_ym=[-1,0])
3434
@test_throws ErrorException SteadyKalmanFilter(linmodel1, nint_ym=0, σQ=[1])
3535
@test_throws ErrorException SteadyKalmanFilter(linmodel1, nint_ym=0, σR=[1,1,1])
36-
@test_throws ErrorException SteadyKalmanFilter( # test error compute Kalman gain K
37-
LinModel(ss([1 0;0 1], [1; 0], [1 0], 0, 1.0)), nint_ym=[1]
38-
)
36+
model_unobs = LinModel([1 0;0 1.5], [1; 0;;], [1 0], zeros(2,0), zeros(1,0),1,1,2,1,0)
37+
@test_throws ErrorException SteadyKalmanFilter(model_unobs, nint_ym=[1])
3938
end
4039

4140
@testset "SteadyKalmanFilter estimator methods" begin

0 commit comments

Comments
 (0)