Skip to content

Commit 30102bf

Browse files
committed
Change most/all signals x,xd,xhat,u,ud to :math: to be consistent with :math:formula, fix typos
1 parent 421cfaa commit 30102bf

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

control/statefbk.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def create_statefbk_iosystem(
614614
is given, the output of this system should represent the full state.
615615
616616
gain : ndarray or tuple
617-
If an array is given, it represents the state feedback gain (K).
617+
If an array is given, it represents the state feedback gain (`K`).
618618
This matrix defines the gains to be applied to the system. If
619619
`integral_action` is None, then the dimensions of this array
620620
should be (sys.ninputs, sys.nstates). If `integral action` is
@@ -631,10 +631,10 @@ def create_statefbk_iosystem(
631631
Set the name of the signals to use for the desired state and
632632
inputs. If a single string is specified, it should be a
633633
format string using the variable `i` as an index. Otherwise,
634-
a list of strings matching the size of xd and ud,
634+
a list of strings matching the size of :math:`x_d` and :math:`u_d`,
635635
respectively, should be used. Default is "xd[{i}]" for
636636
xd_labels and "ud[{i}]" for ud_labels. These settings can
637-
also be overriden using the `inputs` keyword.
637+
also be overridden using the `inputs` keyword.
638638
639639
integral_action : ndarray, optional
640640
If this keyword is specified, the controller can include integral
@@ -650,13 +650,13 @@ def create_statefbk_iosystem(
650650
gainsched_indices : int, slice, or list of int or str, optional
651651
If a gain scheduled controller is specified, specify the indices of
652652
the controller input to use for scheduling the gain. The input to
653-
the controller is the desired state xd, the desired input ud, and
654-
the system state x (or state estimate xhat, if an estimator is
653+
the controller is the desired state :math:`x_d`, the desired input :math:`u_d`, and
654+
the system state :math:`x` (or state estimate :math:`\hat{x}`, if an estimator is
655655
given). If value is an integer `q`, the first `q` values of the
656-
[xd, ud, x] vector are used. Otherwise, the value should be a
656+
:math:`[x_d, u_d, x]` vector are used. Otherwise, the value should be a
657657
slice or a list of indices. The list of indices can be specified
658-
as either integer offsets or as signal names. The default is to
659-
use the desired state xd.
658+
as either integer offsets or as signal names. The default is to
659+
use the desired state :math:`x_d`.
660660
661661
gainsched_method : str, optional
662662
The method to use for gain scheduling. Possible values are 'linear'
@@ -677,9 +677,9 @@ def create_statefbk_iosystem(
677677
-------
678678
ctrl : NonlinearIOSystem
679679
Input/output system representing the controller. This system
680-
takes as inputs the desired state `xd`, the desired input
681-
`ud`, and either the system state `x` or the estimated state
682-
`xhat`. It outputs the controller action `u` according to the
680+
takes as inputs the desired state :math:`x_d`, the desired input
681+
:math:`u_d`, and either the system state :math:`x` or the estimated state
682+
:math:`\hat{x}`. It outputs the controller action :math:`u` according to the
683683
formula :math:`u = u_d - K(x - x_d)`. If the keyword
684684
`integral_action` is specified, then an additional set of
685685
integrators is included in the control system (with the gain
@@ -690,8 +690,8 @@ def create_statefbk_iosystem(
690690
691691
clsys : NonlinearIOSystem
692692
Input/output system representing the closed loop system. This
693-
systems takes as inputs the desired trajectory `(xd, ud)` and
694-
outputs the system state `x` and the applied input `u`
693+
system takes as inputs the desired trajectory :math:`(x_d, u_d)` and
694+
outputs the system state :math:`x` and the applied input :math:`u`
695695
(vertically stacked).
696696
697697
Other Parameters

0 commit comments

Comments
 (0)