Skip to content

step_info undershoot must be "Undershoot: Percentage of undershoot" #565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
juanodecc opened this issue Mar 12, 2021 · 0 comments · Fixed by #567
Closed

step_info undershoot must be "Undershoot: Percentage of undershoot" #565

juanodecc opened this issue Mar 12, 2021 · 0 comments · Fixed by #567

Comments

@juanodecc
Copy link
Contributor

The function doc:

Undershoot: Percentage of undershoot

the code calculate undershoot as:

'Undershoot': yout.min(), # not very confident about this

An example:

import numpy as np              # NumPy library
import matplotlib.pyplot as plt
import control as ctrl  # Name: control Version: 0.8.4

sys3 = ctrl.tf([-1, 1],[1,1,1])
ctrl.step_info(sys3)
time,yout=ctrl.step_response(sys3)
plt.figure()
plt.plot(time,yout)

{'RiseTime': 1.197344248356904,
'SettlingTime': 6.631445067822853,
'SettlingMin': 0.8878785981432115,
'SettlingMax': 1.2087112656708903,
'Overshoot': 23.04582827419207,
'Undershoot': -0.2791703847438639,
'Peak': 1.2087112656708903,
'PeakTime': 4.236756571109045,
'SteadyStateValue': 0.9823260833983173}

Figure_1

juanodecc added a commit to juanodecc/python-control that referenced this issue Mar 12, 2021
@murrayrm murrayrm linked a pull request Mar 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant