Skip to content

Commit a0877c5

Browse files
committed
fix blank bode plot in rootlocus_pid_designer
1 parent 999189c commit a0877c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

control/sisotool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
213213
be modified at a time. `Sisotool` plots the step response, frequency
214214
response, and root locus.
215215
216-
When first run, `deltaK` is set to 0; click on a branch of the root locus
217-
plot to try a different value. Each click updates plots and prints
216+
When first run, `deltaK` is set to 0.001; click on a branch of the root
217+
locus plot to try a different value. Each click updates plots and prints
218218
the corresponding `deltaK`. To tune all three PID gains, repeatedly call
219219
`rootlocus_pid_designer`, and select a different `gain` each time (`'P'`,
220220
`'I'`, or `'D'`). Make sure to add the resulting `deltaK` to your chosen
@@ -352,6 +352,6 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
352352
inplist=['input', input_signal],
353353
outlist=['output', 'y'], check_unused=False)
354354
if plot:
355-
sisotool(loop, kvect=(0.,))
355+
sisotool(loop, initial_gain=0.001)
356356
cl = loop[1, 1] # closed loop transfer function with initial gains
357357
return StateSpace(cl.A, cl.B, cl.C, cl.D, cl.dt)

0 commit comments

Comments
 (0)