Skip to content

Commit 77b224d

Browse files
SteadyStateValue added to documentation and to testing
1 parent 4b4d9cd commit 77b224d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

control/matlab/timeresp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def stepinfo(sys, T=None, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1,0.9)):
9595
Undershoot: Percentage of undershoot
9696
Peak: Absolute peak value
9797
PeakTime: time of the Peak
98+
SteadyStateValue: Steady-state value
9899
99100
100101
See Also

control/tests/timeresp_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ def test_step_info(self):
141141
S.get('PeakTime'),
142142
Strue.get('PeakTime'),
143143
rtol=rtol)
144+
np.testing.assert_allclose(
145+
S.get('SteadyStateValue'),
146+
Strue.get('2.50'),
147+
rtol=rtol)
144148

145149
def test_impulse_response(self):
146150
# Test SISO system

0 commit comments

Comments
 (0)