Skip to content

Commit 5ab8a7b

Browse files
committed
update notebook
1 parent 16dcdb4 commit 5ab8a7b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

PathTracking/model_predictive_speed_and_steer_control/notebook.ipynb

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"# Vehicle model linearization\n",
2222
"\n",
2323
"State vector is:\n",
24-
"$$ x = [x, y, v,\\phi]$$ x: x-position, y:y-position, v:velocity, φ: yaw angle\n",
24+
"$$ z = [x, y, v,\\phi]$$ x: x-position, y:y-position, v:velocity, φ: yaw angle\n",
2525
"\n",
2626
"Input vector is:\n",
2727
"$$ u = [a, \\delta]$$ a: accellation, δ: steering angle\n",
@@ -30,7 +30,20 @@
3030
"$$ \\dot{x} = vcos(\\phi)$$\n",
3131
"$$ \\dot{y} = vsin((\\phi)$$\n",
3232
"$$ \\dot{v} = a$$\n",
33-
"$$ \\dot{\\phi} = \\frac{vtan(\\delta)}{L}$$"
33+
"$$ \\dot{\\phi} = \\frac{vtan(\\delta)}{L}$$\n",
34+
"\n",
35+
"ODE is\n",
36+
"\n",
37+
"$$ \\dot{z} = Az+Bu$$\n",
38+
"\n",
39+
"and A, B are\n",
40+
"\n",
41+
"\n",
42+
"\n",
43+
"You can get a discrete-time mode with Forward Euler Discretization with sampling time dt.\n",
44+
"\n",
45+
"$$z_{k+1}=z_k+f(z_k,u_k)dt$$\n",
46+
"\n"
3447
]
3548
},
3649
{

0 commit comments

Comments
 (0)