root/applications/dual/SIDP/bakalarka/SIDPS/matlab/motor/get_next.asv
@
1351
Revision 1351, 252 bytes (checked in by zimamiro, 13 years ago) |
---|
Line | |
---|---|
1 | function x1=get_next(system,x,u) |
2 | A=[system.a 0 system.b*sin(x(4)) 0 |
3 | 0 system.a -system.b*cos(x(4)) 0 |
4 | -system.e*sin(x(4)) system.e*cos(x(4)) system.d 0 |
5 | 0 0 system.deltat 1]; |
6 | x1=A*x+ system.B*u'; |
7 | |
8 | x1(4)=x1(4)-floor(x1(4)/6.28)*6.28; |
9 | end |
Note: See TracBrowser
for help on using the browser.