sistema_discr: better comments
parent
6b726d8c56
commit
30540c1bc8
|
@ -1,5 +1,10 @@
|
|||
function dq = sistema_discr(t, q, u_discr, sim_data)
|
||||
theta = q(3);
|
||||
G_q = [cos(theta), 0; sin(theta), 0; 0, 1];
|
||||
dq = G_q*diffdrive_to_uni(u_discr, sim_data);
|
||||
%dq = T(q)*W*u
|
||||
|
||||
% T_q (unicycle)
|
||||
T_q = [cos(theta), 0; sin(theta), 0; 0, 1];
|
||||
% W*u
|
||||
Wu = diffdrive_to_uni(u_discr, sim_data);
|
||||
dq = T_q*Wu;
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue