Skip to content

Commit

Permalink
return loop transfer function as statespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerbfuller committed Nov 5, 2021
1 parent 9b3dd7c commit ee1aa5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions control/sisotool.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from .statesp import ss
from .bdalg import append, connect
from .iosys import tf2io, ss2io, summing_junction, interconnect
from control.statesp import _convert_to_statespace
from control.statesp import _convert_to_statespace, StateSpace
from control.lti import common_timebase, isctime
import matplotlib
import matplotlib.pyplot as plt
Expand Down Expand Up @@ -331,4 +331,5 @@ def rootlocus_pid_designer(plant, gain='P', sign=+1, input_signal='r',
outlist=['output', 'y'])
if plot:
sisotool(loop, kvect=(0.,))
return _convert_to_statespace(loop[1, 1])
return StateSpace(loop[1, 1].A, loop[1, 1].B, loop[1, 1].C, loop[1, 1].D,
loop[1, 1].dt)

0 comments on commit ee1aa5e

Please sign in to comment.