Skip to content

Commit d65428a

Browse files
authored
Update Inverted_Pendulum_Pole_Placement.ipynb
add angular position of pendulum to the output
1 parent be0fd6d commit d65428a

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
@@ -1104,7 +1104,7 @@
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",
11061106
"C = np.array([[1, 0, 0, 0], [0, 0, 1, 0]])\n",
1107-
"D = np.array([0])\n",
1107+
"D = np.array([[0],[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",
11101110
"\n",

0 commit comments

Comments
 (0)