Skip to content

Commit f0b6ebf

Browse files
authored
Update Inverted_Pendulum_Pole_Placement.ipynb
add angular displacement to the linearized output model
1 parent 641d26e commit f0b6ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Notebooks/Inverted_Pendulum_Pole_Placement.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@
11031103
"\n",
11041104
"A = np.array([[0,1,0,0],[0,-d/M,-m*g/M,0],[0,0,0,1],[0,-d/(M+L),-(m+M)*g/(M+L),0]])\n",
11051105
"B = np.array([[0],[1/M],[0],[1/(M*L)]])\n",
1106-
"C = np.array([1,0,0,0])\n",
1106+
"C = np.array([[1, 0, 0, 0], [0, 0, 1, 0]])\n",
11071107
"D = np.array([0])\n",
11081108
"Q = np.matrix([[1,0,0,0],[0,1,0,0],[0,0,10,0],[0,0,0,100]])\n",
11091109
"R = 0.0001\n",

0 commit comments

Comments
 (0)