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