sistema_discr: better comments

master
EmaMaker 2024-09-06 15:49:04 +02:00
parent 6b726d8c56
commit 30540c1bc8
1 changed files with 7 additions and 2 deletions

View File

@ -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