UbiquityRobotics / move_basic

A minimal navigation node
BSD 3-Clause "New" or "Revised" License
69 stars 21 forks source link

distRemaining is constant #63

Closed THOSE-EYES closed 4 years ago

THOSE-EYES commented 4 years ago

The problem is that distRemaining is always constant due to being assigned using the "linear" variable. The solution is to change line 738 double distRemaining = sqrt(linear.x() * linear.x() + linear.y() * linear.y()); to double distRemaining = sqrt(remaining.x() * remaining.x() + remaining.y() * remaining.y());

The solution is tested and works fully.

dorkamotorka commented 4 years ago

Thank you for the request. Changes have been applied.