-
Notifications
You must be signed in to change notification settings - Fork 441
Fixes to margin calculation #68
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
Conversation
TODO: verify the stability margin
…tions check margin calculation on analytic tf with calculation on numeric (interpolation with FRD) variant. Extended test cases
solved the conflict in the margin_test routine updated the doc for margin to match order of returned values
I think this is OK now. I merged in roryyorke's fix for the matlab compatibility routine. |
I'll try to have a look through the changes and then merge. Probably won't get to it until later in the week, so if someone else has time please go ahead! |
Hi, Not sure this is all that helpful; apologies if not. This code [run in Ubuntu 14.04, Python 2.7.6, numpy 1.8.2, and with painyeph/master]
produces this result:
I stared at Regarding the stability margin: my possibly unrealistic test case has Separately on the stability margin, I believe this can be evaluated as This idea can be tested with these two Octave scripts:
which produce output like this:
Regards, Rory |
It seems that back when I implemented a new margin calculation, there were some bugs left. In this pull request, I fixed the following:
In an sideways related issue, I found that the "smooth" parameter was dropped from an FRD when the FRD was combined with a linear system, multiplied with a gain, etc. Fixed that to keep smooth FRD smooth, and go nonsmooth as soon as a combination with an FRD without the smooth parameter is requested.