In [1]:
from state_feedback import*
init_printing(use_latex=True) #For good look equations
In [2]:
bx = [[0],[v1*tan(x3)]]
bx = fillM(bx)
bx
Out[2]:
In [3]:
Dx = [[cos(x3), 0],[0, z1/cos(x3)**2]]
Dx = fillM(Dx)
Dx
Out[3]:
In [4]:
V = [[z1],[v2]]
V = fillM(V)
V
Out[4]:
In [5]:
sfeed(Dx, bx, V)
Out[5]:
In [15]:
f = sin(x3)*u1
f
Out[15]:
In [16]:
fd = tdiff(f)
fd
Out[16]:
In [17]:
u1s = y1d/cos(x3)
u1s
Out[17]:
In [18]:
fd = fd.subs(u1, u1s)
fd
Out[18]:
In [ ]:
from nlcontrol import*
from tools import*