GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — fix blank bode plot in rootlocus_pid_designer by sawyerbfuller · Pull Request #883 · python-control/python-control Conversation
Contributor
Starts with a small gain rather than zero to insure that the frequency response plots appear. Addresses #686
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Coverage: 94.649% (+0.1%) from 94.535% when pulling fabcb37 on sawyerbfuller:rlpd_blank into 1e1c8eb on python-control:main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I tried running this on the example I pointed out in #686 and when I click on the root locus, nothing changes. I then tried the same system in Also, why is 0.001 the right initial_gain to use? We have a default value for this ( |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also, in looking at the code a bit, I am confused about the fact that the initial gain seems to be set using the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Regarding default gain: for rootlocus-pid-designer, in principle you are already starting with baseline nonzero kd0, kp0, and ki0, and the step responses show result of that. You are interested in any addition delta-k to one of those, so it makes sense to start that one with a small value. But a zero value erases Bose plot. Np.eps is another option but it would make a very low gain bode plot so I picked a kind of arbitrary small nonzero value. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Re non-interactive plot: doesn’t work in Jupiter, have to use magic command %matplotlib qt. Assuming you tried that, can you zoom? The way it works you have to click near one of its pre calculated points. It computes more if you zoom in. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@murrayrm On further thought based on your questions, I realized that a deltaK parameter would be useful needed for non-interactive use, so that the bode plot was usable. Added it in. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Using %matplotlib fixed the issues I was having, so I added a bit of documentation. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
rootlocus_pid_designer plot looks strange + needs documentation
There was an error while loading. Please reload this page.