added freeze target point
This commit is contained in:
@@ -128,7 +128,7 @@ bool Navigation::getCourseCorrection(CourseCorrection& correction) {
|
||||
return false;
|
||||
|
||||
// Check if I need a new Point
|
||||
if (distance < MIN_DISTANCE_TO_REACH_POINT) {
|
||||
if (distance < MIN_DISTANCE_TO_REACH_POINT && !this->preventNextPoint) {
|
||||
if (!this->nextPoint()) {
|
||||
this->navigationFinished = true;
|
||||
this->navigationStarted = false;
|
||||
|
||||
Reference in New Issue
Block a user