remove most of the defines
This commit is contained in:
@@ -63,7 +63,7 @@ void Navigation::init(Route* route) {
|
||||
caliCompass.loadData();
|
||||
caliCompass.useData();
|
||||
|
||||
this->loopDelay =AZIMUTH_UPDATE_DELAY;
|
||||
Component::loopDelay = Navigation::loopDelay;
|
||||
}
|
||||
|
||||
Navigation::~Navigation() {
|
||||
@@ -168,8 +168,8 @@ Navigation::Status Navigation::addCurrentPosToRoute() {
|
||||
|
||||
// Every Point after the first
|
||||
double distance = this->currentPosition.distanceTo(this->lastPointRouteInsert);
|
||||
if (MIN_DISTANCE_BETWEEN_POINTS <= distance
|
||||
&& MAX_DISTANCE_BETWEEN_POINTS >= distance){
|
||||
if (Navigation::minDisBetweenPoints <= distance
|
||||
&& Navigation::maxDisBetweenPoints >= distance){
|
||||
this->route->addPointToRoute(this->currentPosition);
|
||||
this->lastPointRouteInsert = this->currentPosition;
|
||||
return Status::Updated;
|
||||
|
||||
Reference in New Issue
Block a user