You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -563,12 +576,14 @@ function sisomargin(sys::LTISystem, w::AbstractVector{<:Real}; full=false, allMa
563
576
end
564
577
end
565
578
if adjust_phase_start &&isrational(sys)
566
-
intexcess =integrator_excess(sys)
579
+
intexcess, p, z, tol =integrator_excess_with_tol(sys)
580
+
n_unstable_poles =count(real(p) > tol for p in p)
567
581
if intexcess !=0
568
582
# Snap phase so that it starts at -90*intexcess
569
583
nineties =round(Int, phase[1] /90)
570
584
adjust = ((90*(-intexcess-nineties)) ÷360) *360
571
-
pm = pm .+ adjust
585
+
pm_unstable_adjust = n_unstable_poles*360# count the number of unstable poles, and remove 360 for each. Be careful with poles that are counted as integrators
0 commit comments