Commit bd8b6af3 authored by Matthias Rungger's avatar Matthias Rungger
Browse files

bugfix in the vehicle example, closed loop simulation in matlab

parent 4d6ebac8
......@@ -88,7 +88,7 @@ end
function dxdt = unicycle_ode(t,x,u)
dxdt = zeros(3,1);
c=atan(tan(u(2)/2));
c=atan(tan(u(2))/2);
dxdt(1)=u(1)*cos(c+x(3))/cos(c);
dxdt(2)=u(1)*sin(c+x(3))/cos(c);
......
......@@ -86,7 +86,7 @@ end
function dxdt = unicycle_ode(t,x,u)
dxdt = zeros(3,1);
c=atan(tan(u(2)/2));
c=atan(tan(u(2))/2);
dxdt(1)=u(1)*cos(c+x(3))/cos(c);
dxdt(2)=u(1)*sin(c+x(3))/cos(c);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment