@@ -110,8 +110,8 @@ Module usage
110110============
111111
112112To create a trajectory for a differentially flat system, a
113- :class: `~control. flatsys.FlatSystem ` object must be created. This is done
114- using the :func: `~control. flatsys.flatsys ` function:
113+ :class: `~flatsys.FlatSystem ` object must be created. This is done
114+ using the :func: `~flatsys.flatsys ` function:
115115
116116 import control.flatsys as fs
117117 sys = fs.flatsys(forward, reverse)
@@ -120,12 +120,12 @@ The `forward` and `reverse` parameters describe the mappings between the
120120system state/input and the differentially flat outputs and their
121121derivatives ("flat flag").
122122
123- The :func: `~control. flatsys.FlatSystem.forward ` method computes the
123+ The :func: `~flatsys.FlatSystem.forward ` method computes the
124124flat flag given a state and input:
125125
126126 zflag = sys.forward(x, u)
127127
128- The :func: `~control. flatsys.FlatSystem.reverse ` method computes the state
128+ The :func: `~flatsys.FlatSystem.reverse ` method computes the state
129129and input given the flat flag:
130130
131131 x, u = sys.reverse(zflag)
@@ -139,11 +139,11 @@ The number of flat outputs must match the number of system inputs.
139139
140140For a linear system, a flat system representation can be generated by
141141passing a :class: `~control.StateSpace ` system to the
142- :func: `~control. flatsys.flatsys ` factory function::
142+ :func: `~flatsys.flatsys ` factory function::
143143
144144 sys = fs.flatsys(linsys)
145145
146- The :func: `~control. flatsys.flatsys ` function also supports the use of
146+ The :func: `~flatsys.flatsys ` function also supports the use of
147147named input, output, and state signals::
148148
149149 sys = fs.flatsys(
@@ -153,23 +153,23 @@ In addition to the flat system description, a set of basis functions
153153:math: `\phi _i(t)` must be chosen. The `FlatBasis ` class is used to
154154represent the basis functions. A polynomial basis function of the
155155form 1, :math: `t`, :math: `t^2 `, ... can be computed using the
156- :class: `~control. flatsys.PolyFamily ` class, which is initialized by
156+ :class: `~flatsys.PolyFamily ` class, which is initialized by
157157passing the desired order of the polynomial basis set::
158158
159159 basis = fs.PolyFamily(N)
160160
161161Additional basis function families include Bezier curves
162- (:class: `~control. flatsys.BezierFamily `) and B-splines
163- (:class: `~control. flatsys.BSplineFamily `).
162+ (:class: `~flatsys.BezierFamily `) and B-splines
163+ (:class: `~flatsys.BSplineFamily `).
164164
165165Once the system and basis function have been defined, the
166- :func: `~control. flatsys.point_to_point ` function can be used to compute a
166+ :func: `~flatsys.point_to_point ` function can be used to compute a
167167trajectory between initial and final states and inputs::
168168
169169 traj = fs.point_to_point(
170170 sys, Tf, x0, u0, xf, uf, basis=basis)
171171
172- The returned object has class :class: `~control. flatsys.SystemTrajectory ` and
172+ The returned object has class :class: `~flatsys.SystemTrajectory ` and
173173can be used to compute the state and input trajectory between the initial and
174174final condition::
175175
@@ -178,11 +178,11 @@ final condition::
178178where `T ` is a list of times on which the trajectory should be evaluated
179179(e.g., `T = numpy.linspace(0, Tf, M) `.
180180
181- The :func: `~control. flatsys.point_to_point ` function also allows the
181+ The :func: `~flatsys.point_to_point ` function also allows the
182182specification of a cost function and/or constraints, in the same
183183format as :func: `~control.optimal.solve_ocp `.
184184
185- The :func: `~control. flatsys.solve_flat_ocp ` function can be used to
185+ The :func: `~flatsys.solve_flat_ocp ` function can be used to
186186solve an optimal control problem without a final state::
187187
188188 traj = fs.solve_flat_ocp(
@@ -311,19 +311,21 @@ cost:`
311311Module classes and functions
312312============================
313313
314+ .. currentmodule:: control
315+
314316.. autosummary::
315317 :template: custom-class-template.rst
316318
317- ~control. flatsys.BasisFamily
318- ~control. flatsys.BezierFamily
319- ~control. flatsys.BSplineFamily
320- ~control. flatsys.FlatSystem
321- ~control. flatsys.LinearFlatSystem
322- ~control. flatsys.PolyFamily
323- ~control. flatsys.SystemTrajectory
319+ flatsys.BasisFamily
320+ flatsys.BezierFamily
321+ flatsys.BSplineFamily
322+ flatsys.FlatSystem
323+ flatsys.LinearFlatSystem
324+ flatsys.PolyFamily
325+ flatsys.SystemTrajectory
324326
325327.. autosummary::
326328
327- ~control. flatsys.flatsys
328- ~control. flatsys.point_to_point
329- ~control. flatsys.solve_flat_ocp
329+ flatsys.flatsys
330+ flatsys.point_to_point
331+ flatsys.solve_flat_ocp
0 commit comments