Skip to content

Commit a592d75

Browse files
authored
add test for gofplot(G::LQG) (#430)
1 parent 404790b commit a592d75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_lqg.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Q2 = 1eye_(2)
1717
R1 = 100eye_(4)
1818
R2 = 1eye_(2)
1919
G = LQG(sys, Q1, Q2, R1, R2)
20+
gangoffourplot(G) # Test that it at least does not error
2021
@test approxsetequal(eigvals(G.sysc.A), [ -31.6209+0.0im, -1.40629+0.0im, -15.9993+0.911174im, -15.9993-0.911174im, ], rtol = 1e-3)
2122

2223
qQ = 1
@@ -26,6 +27,7 @@ Q2 = 1eye_(2)
2627
R1 = 1eye_(6)
2728
R2 = 1eye_(2)
2829
Gi = LQG(sys, Q1, Q2, R1, R2, qQ=qQ, qR=qR, integrator=true)
30+
gangoffourplot(Gi) # Test that it at least does not error
2931
@test approxsetequal(eigvals(Gi.sysc.A), [0.0, 0.0, -47.4832, -44.3442, -3.40255, -1.15355 ], rtol = 1e-3)
3032

3133
@test approxsetequal(eigvals(G[:cl].A), [-1.0, -14.1774, -2.21811, -14.3206, -1.60615, -22.526, -1.0, -14.1774], rtol=1e-3)

0 commit comments

Comments
 (0)