added increase and decrease to navigation

This commit is contained in:
2023-05-24 14:47:59 +02:00
parent 52590e9e2f
commit 49e0c2d1ef
3 changed files with 13 additions and 16 deletions
+2 -1
View File
@@ -130,8 +130,9 @@ bool Navigation::getCourseCorrection(CourseCorrection& correction) {
return false;
// Check if I need a new Point
if (distance < MIN_DISTANCE_TO_REACH_POINT && this->preventNextPoint == false) {
if (distance < this->minDistanceToReachPoint && this->preventNextPoint == false) {
if (!this->nextPoint()) {
std::cout << "Navigation::getCourseCorrection finished" << std::endl;
this->navigationFinished = true;
this->navigationStarted = false;
return false; // End of navigation