@@ -341,11 +341,11 @@ def lqr(*args, **kwargs):
341341 integral_action : ndarray, optional
342342 If this keyword is specified, the controller includes integral
343343 action in addition to state feedback. The value of the
344- `integral_action`` keyword should be an ndarray that will be
344+ `integral_action` keyword should be an ndarray that will be
345345 multiplied by the current state to generate the error for the
346346 internal integrator states of the control law. The number of
347347 outputs that are to be integrated must match the number of
348- additional rows and columns in the ``Q` ` matrix.
348+ additional rows and columns in the `Q ` matrix.
349349 method : str, optional
350350 Set the method used for computing the result. Current methods are
351351 'slycot' and 'scipy'. If set to None (default), try 'slycot' first
@@ -491,11 +491,11 @@ def dlqr(*args, **kwargs):
491491 integral_action : ndarray, optional
492492 If this keyword is specified, the controller includes integral
493493 action in addition to state feedback. The value of the
494- `integral_action`` keyword should be an ndarray that will be
494+ `integral_action` keyword should be an ndarray that will be
495495 multiplied by the current state to generate the error for the
496496 internal integrator states of the control law. The number of
497497 outputs that are to be integrated must match the number of
498- additional rows and columns in the ``Q` ` matrix.
498+ additional rows and columns in the `Q ` matrix.
499499 method : str, optional
500500 Set the method used for computing the result. Current methods are
501501 'slycot' and 'scipy'. If set to None (default), try 'slycot' first
@@ -617,9 +617,9 @@ def create_statefbk_iosystem(
617617
618618 ctrl, clsys = ct.create_statefbk_iosystem(sys, K)
619619
620- where `` sys`` is the process dynamics and ``K` ` is the state (+ integral)
620+ where `sys` is the process dynamics and `K ` is the state (+ integral)
621621 feedback gain (eg, from LQR). The function returns the controller
622- `` ctrl`` and the closed loop systems `` clsys` `, both as I/O systems.
622+ `ctrl` and the closed loop systems `clsys`, both as I/O systems.
623623
624624 A gain scheduled controller can also be created, by passing a list of
625625 gains and a corresponding list of values of a set of scheduling
@@ -636,32 +636,32 @@ def create_statefbk_iosystem(
636636 is given, the output of this system should represent the full state.
637637
638638 gain : ndarray or tuple
639- If a array is give , it represents the state feedback gain (K).
639+ If an array is given , it represents the state feedback gain (K).
640640 This matrix defines the gains to be applied to the system. If
641- `` integral_action` ` is None, then the dimensions of this array
641+ `integral_action` is None, then the dimensions of this array
642642 should be (sys.ninputs, sys.nstates). If `integral action` is
643643 set to a matrix or a function, then additional columns
644644 represent the gains of the integral states of the controller.
645645
646646 If a tuple is given, then it specifies a gain schedule. The tuple
647- should be of the form `` (gains, points)` ` where gains is a list of
647+ should be of the form `(gains, points)` where gains is a list of
648648 gains :math:`K_j` and points is a list of values :math:`\\ mu_j` at
649649 which the gains are computed. The `gainsched_indices` parameter
650650 should be used to specify the scheduling variables.
651651
652652 xd_labels, ud_labels : str or list of str, optional
653- Set the name of the signals to use for the desired state and inputs.
654- If a single string is specified, it should be a format string using
655- the variable ``i`` as an index. Otherwise, a list of strings
656- matching the size of xd and ud, respectively, should be used.
657- Default is ``'xd[{i}]'`` for xd_labels and ``'ud [{i}]'`` for
658- ud_labels. These settings can also be overriden using the `inputs`
659- keyword.
653+ Set the name of the signals to use for the desired state and
654+ inputs. If a single string is specified, it should be a
655+ format string using the variable `i` as an index. Otherwise,
656+ a list of strings matching the size of xd and ud,
657+ respectively, should be used. Default is "xd [{i}]" for
658+ xd_labels and "ud[{i}]" for ud_labels. These settings can
659+ also be overriden using the `inputs` keyword.
660660
661661 integral_action : ndarray, optional
662662 If this keyword is specified, the controller can include integral
663663 action in addition to state feedback. The value of the
664- `integral_action`` keyword should be an ndarray that will be
664+ `integral_action` keyword should be an ndarray that will be
665665 multiplied by the current and desired state to generate the error
666666 for the internal integrator states of the control law.
667667
@@ -678,7 +678,7 @@ def create_statefbk_iosystem(
678678 [xd, ud, x] vector are used. Otherwise, the value should be a
679679 slice or a list of indices. The list of indices can be specified
680680 as either integer offsets or as signal names. The default is to
681- use the desire state xd.
681+ use the desired state xd.
682682
683683 gainsched_method : str, optional
684684 The method to use for gain scheduling. Possible values are 'linear'
@@ -691,28 +691,29 @@ def create_statefbk_iosystem(
691691 Set the type of controller to create. The default for a linear gain
692692 is a linear controller implementing the LQR regulator. If the type
693693 is 'nonlinear', a :class:NonlinearIOSystem is created instead, with
694- the gain ``K` ` as a parameter (allowing modifications of the gain at
694+ the gain `K ` as a parameter (allowing modifications of the gain at
695695 runtime). If the gain parameter is a tuple, then a nonlinear,
696696 gain-scheduled controller is created.
697697
698698 Returns
699699 -------
700700 ctrl : InputOutputSystem
701- Input/output system representing the controller. This system takes
702- as inputs the desired state ``xd``, the desired input ``ud``, and
703- either the system state ``x`` or the estimated state ``xhat``. It
704- outputs the controller action u according to the formula :math:`u =
705- u_d - K(x - x_d)`. If the keyword ``integral_action`` is specified,
706- then an additional set of integrators is included in the control
707- system (with the gain matrix ``K`` having the integral gains
708- appended after the state gains). If a gain scheduled controller is
709- specified, the gain (proportional and integral) are evaluated using
710- the scheduling variables specified by ``gainsched_indices``.
701+ Input/output system representing the controller. This system
702+ takes as inputs the desired state `xd`, the desired input
703+ `ud`, and either the system state `x` or the estimated state
704+ `xhat`. It outputs the controller action `u` according to the
705+ formula :math:`u = u_d - K(x - x_d)`. If the keyword
706+ `integral_action` is specified, then an additional set of
707+ integrators is included in the control system (with the gain
708+ matrix `K` having the integral gains appended after the state
709+ gains). If a gain scheduled controller is specified, the gain
710+ (proportional and integral) are evaluated using the scheduling
711+ variables specified by `gainsched_indices`.
711712
712713 clsys : InputOutputSystem
713714 Input/output system representing the closed loop system. This
714- systems takes as inputs the desired trajectory `` (xd, ud)` ` and
715- outputs the system state ``x`` and the applied input ``u` `
715+ systems takes as inputs the desired trajectory `(xd, ud)` and
716+ outputs the system state `x` and the applied input `u `
716717 (vertically stacked).
717718
718719 Other Parameters
0 commit comments