essai x=0 || y = 0

This commit is contained in:
Louis-Guillaume DUBOIS 2015-05-22 17:29:41 +02:00
parent f2777c5d98
commit 2d0d14ddf0

View file

@ -56,10 +56,12 @@ class Run
if (fabs(yy) > fabs(xx) && fabs(yy) > y_dev_min)
{
mvt->linear.y = yy * plan_vel;
mvt->linear.x = 0.;
}
else if (fabs(xx) > x_dev_min)
{
mvt->linear.x = xx * plan_vel;
mvt->linear.y = 0.;
}
assert( !(mvt->linear.x > 0. && mvt->linear.y > 0.) );