spelling
This commit is contained in:
@@ -144,7 +144,7 @@ bool Navigation::addCurrentPosToRoute() {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Ever Point after the first
|
||||
// Every Point after the first
|
||||
if (MIN_DISTANCE_BETWEEN_POINTS <= this->currentPosition.distanceTo(this->lastPoint)) {
|
||||
this->route->addPointToRoute(this->currentPosition);
|
||||
this->lastPoint = this->currentPosition;
|
||||
@@ -170,10 +170,10 @@ void Navigation::updateCurrentLocation() {
|
||||
}
|
||||
|
||||
bool Navigation::nextPoint() {
|
||||
|
||||
if (!this->navigationStarted)
|
||||
return false;
|
||||
Point newTargetPoint = this->route->getNextPoint();
|
||||
return this->setTargetPoint(newTargetPoint);
|
||||
return this->setTargetPoint(this->route->getNextPoint());
|
||||
}
|
||||
|
||||
bool Navigation::setTargetPoint(Point target) {
|
||||
|
||||
Reference in New Issue
Block a user