Skip to content

Commit 12865cf

Browse files
committed
Merge branch 'main' into rlocus-k
2 parents b58f435 + 6178097 commit 12865cf

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

control/lti.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def frequency_response(self, omega=None, squeeze=None):
120120
response = self(s)
121121
return FrequencyResponseData(
122122
response, omega, return_magphase=True, squeeze=squeeze,
123-
dt=self.dt, sysname=self.name, plot_type='bode')
123+
dt=self.dt, sysname=self.name, inputs=self.input_labels,
124+
outputs=self.output_labels, plot_type='bode')
124125

125126
def dcgain(self):
126127
"""Return the zero-frequency gain"""

control/matlab/wrappers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,19 @@ def _parse_freqplot_args(*args):
197197

198198
# TODO: rewrite to call root_locus_map, without using legacy plot keyword
199199
def rlocus(*args, **kwargs):
200-
"""rlocus(sys[, klist, xlim, ylim, ...])
200+
"""rlocus(sys[, gains, xlim, ylim, ...])
201201
202202
Root locus diagram.
203203
204204
Calculate the root locus by finding the roots of 1 + k * G(s) where G
205205
is a linear system with transfer function num(s)/den(s) and each k is
206-
an element of kvect.
206+
an element of gains.
207207
208208
Parameters
209209
----------
210210
sys : LTI object
211211
Linear input/output systems (SISO only, for now).
212-
kvect : array_like, optional
212+
gains : array_like, optional
213213
Gains to use in computing plot of closed-loop poles.
214214
xlim : tuple or list, optional
215215
Set limits of x axis, normally with tuple
@@ -224,7 +224,7 @@ def rlocus(*args, **kwargs):
224224
Closed-loop root locations, arranged in which each row corresponds
225225
to a gain in gains.
226226
gains : ndarray
227-
Gains used. Same as kvect keyword argument if provided.
227+
Gains used. Same as gains keyword argument if provided.
228228
229229
Notes
230230
-----

control/statefbk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def place_varga(A, B, p, dtime=False, alpha=None):
195195
>>> B = [[0], [1]]
196196
>>> K = place_varga(A, B, [-2, -5])
197197
198-
See Also:
198+
See Also
199199
--------
200200
place, acker
201201

control/xferfcn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ def zpk(zeros, poles, gain, *args, **kwargs):
16871687
zeros : array_like
16881688
Array containing the location of zeros.
16891689
poles : array_like
1690-
Array containing the location of zeros.
1690+
Array containing the location of poles.
16911691
gain : float
16921692
System gain
16931693
dt : None, True or float, optional

doc/control.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Control system synthesis
124124
lqr
125125
mixsyn
126126
place
127+
place_varga
127128
rootlocus_pid_designer
128129

129130
Model simplification tools

0 commit comments

Comments
 (0)