Skip to content

Commit be0fd6d

Browse files
authored
Update Inverted_Pendulum_Control_Demo.ipynb
1 parent 56d7736 commit be0fd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Notebooks/Inverted_Pendulum_Control_Demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@
11821182
"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",
11831183
"B = np.array([[0],[1/M],[0],[1/(M*L)]])\n",
11841184
"C = np.array([[1, 0, 0, 0], [0, 0, 1, 0]])\n",
1185-
"D = np.array([0])\n",
1185+
"D = np.array([[0],[0]])\n",
11861186
"\n",
11871187
"# Q and R for LQR\n",
11881188
"Q = np.matrix([[1,0,0,0],[0,1,0,0],[0,0,10,0],[0,0,0,100]])\n",

0 commit comments

Comments
 (0)