8000 updates to address @slivingston review comments · python-control/python-control@951e171 · GitHub
[go: up one dir, main page]

Skip to content

Commit 951e171

Browse files
committed
updates to address @slivingston review comments
1 parent c72fa91 commit 951e171

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

control/timeresp.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,13 @@ class TimeResponseData:
169169
input_labels, output_labels, state_labels : array of str
170170
Names for the input, output, and state variables.
171171
172+
success : bool, optional
173+
If ``False``, result may not be valid (see
174+
:func:`~control.input_output_response`). Defaults to ``True``.
175+
176+
message : str, optional
177+
Informational message if ``success`` is ``False``.
178+
172179
sysname : str, optional
173180
Name of the system that created the data.
174181

examples/cds101_invpend-dynamics.ipynb renamed to examples/cds110_invpend-dynamics.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"source": [
99
"# Inverted Pendulum Dynamics\n",
1010
"\n",
11-
"CDS 110/ChE 105, Winter 2024 <br>\n",
11+
"CDS 110, Winter 2024 <br>\n",
1212
"Richard M. Murray\n",
1313
"\n",
1414
"In this lecture we investigate the nonlinear dynamics of an inverted pendulum system. More information on this example can be found in [FBS2e](https://fbswiki.org/wiki/index.php?title=FBS), Examples 3.3 and 5.4.\n"
@@ -56,7 +56,7 @@
5656
" y = \\theta,\n",
5757
"$$\n",
5858
"\n",
59-
"where $m$ and $J_t = J + m l^2$ are the mass and (total) moment of inertia of the system to be balanced, $l$ is the distance from the base to the center of mass of the balanced body, $b$ is the coefficient of viscous friction, and $g$ is the acceleration due to gravity.\n",
59+
"where $m$ and $J_t = J + m l^2$ are the mass and (total) moment of inertia of the system to be balanced, $l$ is the distance from the base to the center of mass of the balanced body, $b$ is the coefficient of rotational friction, and $g$ is the acceleration due to gravity.\n",
6060
"\n",
6161
"We begin by creating a nonlinear model of the system:"
6262
]
@@ -155,7 +155,7 @@
155155
"source": [
156156
"We see that the vertical ($\\theta = 0$) equilibrium point is unstable, but the downward equlibrium points ($\\theta = \\pm \\pi$) are stable.\n",
157157
"\n",
158-
"Note also the *separatrices* for the equilibrium point, which gives insighs into the regions of attraction (the red dashed line separates the two regions of attraction)."
158+
"Note also the *separatrices* for the equilibrium point, which gives insights into the regions of attraction (the red dashed line separates the two regions of attraction)."
159159
]
160160
},
161161
{
@@ -210,7 +210,7 @@
210210
"id": "AvU35WoBMFjt"
211211
},
212212
"source": [
213-
"Note that the input to the controller is the reference value $r$ (which will will always take to be zero), the measured output $y$, which is the angle $\\theta$ for our system. The output of the controller is the system input $u$, corresponding to the force applied to the wheels.\n",
213+
"Note that the input to the controller is the reference value $r$ (which we will always take to be zero), the measured output $y$, which is the angle $\\theta$ for our system. The output of the controller is the system input $u$, corresponding to the force applied to the wheels.\n",
214214
"\n",
215215
"To connect the controller to the system, we use the [`interconnect`](https://python-control.readthedocs.io/en/latest/generated/control.interconnect.html) function, which will connect all signals that have the same names:"
216216
]
@@ -297,7 +297,7 @@
297297
"source": [
298298
"### Phase portrait\n",
299299
"\n",
300-
"To study the resuling dynamics, we try plotting a phase plot using the same commands as before, but now for the closed loop system (with appropriate proportional gain):"
300+
"To study the resulting dynamics, we try plotting a phase plot using the same commands as before, but now for the closed loop system (with appropriate proportional gain):"
301301
]
302302
},
303303
{
@@ -574,7 +574,7 @@
574574
"\n",
575575
"Here are some things to try with the above code:\n",
576576
"* Try changing the locations of the closed loop eigenvalues in the `place` command\n",
577-
"* Try reseting the limits of the control action (`umax`)\n",
577+
"* Try resetting the limits of the control action (`umax`)\n",
578578
"* Try leaving the state space controller fixed but changing the parameters of the system dynamics ($m$, $l$, $b$). Does the controller still stabilize the system?"
579579
]
580580
},

0 commit comments

Comments
 (0)
0