Skip to content

Commit fba1f74

Browse files
committed
small documentation fixes
1 parent c693ac9 commit fba1f74

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

control/timeresp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def forced_response(sys, T=None, U=0., X0=0., transpose=False,
245245
Notes
246246
-----
247247
For discrete time systems, the input/output response is computed using the
248-
:ref:`scipy.signal.dlsim` function.
248+
:scipy-signal:ref:`scipy.signal.dlsim` function.
249249
250250
For continuous time systems, the output is computed using the matrix
251251
exponential `exp(A t)` and assuming linear interpolation of the inputs

doc/classes.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ these directly.
1616
TransferFunction
1717
StateSpace
1818
FrequencyResponseData
19-
InputOutputSystem
19+
~iosys.InputOutputSystem
2020

21-
Input/Output system subclasses
21+
Input/output system subclasses
2222
==============================
23+
.. currentmodule:: control.iosys
2324

2425
Input/output systems are accessed primarily via a set of subclasses
2526
that allow for linear, nonlinear, and interconnected elements:

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@
8989
# directories to ignore when looking for source files.
9090
# This pattern also affects html_static_path and html_extra_path .
9191
exclude_patterns = [u'_build', 'Thumbs.db', '.DS_Store',
92-
'**.ipynb_checkpoints']
92+
'*.ipynb_checkpoints']
9393

9494
# The name of the Pygments (syntax highlighting) style to use.
9595
pygments_style = 'sphinx'
9696

9797
#This config value contains the locations and names of other projects that
9898
#should be linked to in this documentation.
9999
intersphinx_mapping = \
100-
{'scipy':('https://docs.scipy.org/doc/scipy/reference/', None),
100+
{'scipy':('https://docs.scipy.org/doc/scipy/reference', None),
101101
'numpy':('https://docs.scipy.org/doc/numpy', None)}
102102

103103
#If this is True, todo and todolist produce output, else they produce nothing.

doc/control.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ System interconnections
3232
parallel
3333
series
3434

35+
See also the :ref:`iosys-module` module, which can be used to create and
36+
interconnect nonlinear input/output systems.
37+
3538
Frequency domain plotting
3639
=========================
3740

@@ -134,8 +137,9 @@ Nonlinear system support
134137
.. autosummary::
135138
:toctree: generated/
136139

137-
find_eqpt
138-
linearize
140+
~iosys.find_eqpt
141+
~iosys.linearize
142+
flatsys.point_to_point
139143

140144
.. _utility-and-conversions:
141145

examples/steering.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"\n",
5151
"Assuming no slipping of the wheels, the motion of the vehicle is given by a rotation around a point O that depends on the steering angle $\\delta$. To compute the angle $\\alpha$ of the velocity of the reference point with respect to the axis of the vehicle, we let the distance from the center of rotation O to the contact point of the rear wheel be $r_\\text{r}$ and it the follows from Figure 3.17 in FBS that $b = r_\\text{r} \\tan \\delta$ and $a = r_\\text{r} \\tan \\alpha$, which implies that $\\tan \\alpha = (a/b) \\tan \\delta$.\n",
5252
"\n",
53-
"Reasonable limits for the steering angle depend on the speed. The physical limit is given in our model as 0.5 radians (about 30 degrees). However, this limit is rarely possible when the car is driving since it would cause the tires to slide on the pavement. We us a limit of 0.1 radians (about 6 degrees) at 10 m/s ($\\sim$35 kph) and 0.05 radians (about 3 degrees) at 30 m/s ($\\sim$110 kph). Note that a steering angle of 0.05 rad gives a cross acceleration of $(v^2/b) \\tan \\delta \\approx (100/3) 0.05 = 1.7$ $\\text{m/s}^2$ at 10 m/s and 15 $\\text{m/s}^2$ at 30 m/s ($\\approx$ 1.5 times the force of gravity)."
53+
"Reasonable limits for the steering angle depend on the speed. The physical limit is given in our model as 0.5 radians (about 30 degrees). However, this limit is rarely possible when the car is driving since it would cause the tires to slide on the pavement. We us a limit of 0.1 radians (about 6 degrees) at 10 m/s ($\\approx$ 35 kph) and 0.05 radians (about 3 degrees) at 30 m/s ($\\approx$ 110 kph). Note that a steering angle of 0.05 rad gives a cross acceleration of $(v^2/b) \\tan \\delta \\approx (100/3) 0.05 = 1.7$ $\\text{m/s}^2$ at 10 m/s and 15 $\\text{m/s}^2$ at 30 m/s ($\\approx$ 1.5 times the force of gravity)."
5454
]
5555
},
5656
{
@@ -259,7 +259,7 @@
259259
"We want to design a controller that stabilizes the dynamics of the vehicle and tracks a given reference value $r$ of the lateral position of the vehicle. We use feedback to design the dynamics of the system to have the characteristic polynomial\n",
260260
"$p(s) = s^2 + 2 \\zeta_\\text{c} \\omega_\\text{c} + \\omega_\\text{c}^2$.\n",
261261
"\n",
262-
"To find reasonable values of $\\omega_\\text{c}$ we observe that the initial response of the steering angle to a unit step change in the steering command is $\\omega_\\text{c}^2 r$, where $r$ is the commanded lateral transition. Recall that the model is normalized so that the length unit is the wheelbase $b$ and the time unit is the time $b/v_0$ to travel one wheelbase. A typical car has a wheelbase of about 3 m and, assuming a speed of 30 m/s, a normalized time unit corresponds to 0.1 s. To determine a reasonable steering angle when making a gentle lane change, we assume that the turning radius is $R$ = 600 m. For a wheelbase of 3 m this corresponds to a steering angle $\\delta 3/600 = 0.005$ rad and a lateral acceleration of $v^2/R$ = 302/600 = 1.5 m/s$^2$. Assuming that a lane change corresponds to a translation of one wheelbase we find $ω_\\text{c} = \\sqrt{0.005}$ = 0.07 rad/s.\n",
262+
"To find reasonable values of $\\omega_\\text{c}$ we observe that the initial response of the steering angle to a unit step change in the steering command is $\\omega_\\text{c}^2 r$, where $r$ is the commanded lateral transition. Recall that the model is normalized so that the length unit is the wheelbase $b$ and the time unit is the time $b/v_0$ to travel one wheelbase. A typical car has a wheelbase of about 3 m and, assuming a speed of 30 m/s, a normalized time unit corresponds to 0.1 s. To determine a reasonable steering angle when making a gentle lane change, we assume that the turning radius is $R$ = 600 m. For a wheelbase of 3 m this corresponds to a steering angle $\\delta \\approx 3/600 = 0.005$ rad and a lateral acceleration of $v^2/R$ = 302/600 = 1.5 m/s$^2$. Assuming that a lane change corresponds to a translation of one wheelbase we find $\\omega_\\text{c} = \\sqrt{0.005}$ = 0.07 rad/s.\n",
263263
"\n",
264264
"The unit step responses for the closed loop system for different values of the design parameters are shown below. The effect of $\\omega_c$ is shown on the left, which shows that the response speed increases with increasing $\\omega_\\text{c}$. All responses have overshoot less than 5% (15 cm), as indicated by the dashed lines. The settling times range from 30 to 60 normalized time units, which corresponds to about 3–6 s, and are limited by the acceptable lateral acceleration of the vehicle. The effect of $\\zeta_\\text{c}$ is shown on the right. The response speed and the overshoot increase with decreasing damping. Using these plots, we conclude that a reasonable design choice is $\\omega_\\text{c} = 0.07$ and $\\zeta_\\text{c} = 0.7$. "
265265
]

0 commit comments

Comments
 (0)