Skip to content

Commit

Permalink
small docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerbfuller committed Nov 5, 2021
1 parent 746e089 commit 4ee9fd1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions control/sisotool.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
When first run, `deltaK` is set to 0; click on a branch of the root locus
plot to try a different value. Each click updates plots and prints
the corresponding `deltaK`. To tune all three PID gains, repeatedly call
`pid_designer`, and select a different `gain` each time (`'P'`, `'I'`,
or `'D'`). Make sure to add the resulting `deltaK` to your chosen initial
gain on the next iteration.
`rootlocus_pid_designer`, and select a different `gain` each time (`'P'`,
`'I'`, or `'D'`). Make sure to add the resulting `deltaK` to your chosen
initial gain on the next iteration.
Example: to examine the effect of varying `Kp` starting from an intial
value of 10, use the arguments `gain='P', Kp0=10`. Suppose a `deltaK`
Expand Down Expand Up @@ -331,5 +331,5 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
outlist=['output', 'y'])
if plot:
sisotool(loop, kvect=(0.,))
return StateSpace(loop[1, 1].A, loop[1, 1].B, loop[1, 1].C, loop[1, 1].D,
loop[1, 1].dt)
cl = loop[1, 1] # closed loop transfer function with initial gains
return StateSpace(cl.A, cl.B, cl.C, cl.D, cl.dt)

0 comments on commit 4ee9fd1

Please sign in to comment.