Points are now saveable in captureRoute
This commit is contained in:
@@ -18,9 +18,10 @@ void CaptureRoute::loop() {
|
||||
|
||||
void CaptureRoute::runCaptureRoute() {
|
||||
if (Ps3.data.button.triangle) {
|
||||
this->navigation->addCurrentPosToRoute();
|
||||
this->routeInfo.totalPoints++;
|
||||
this->updateDisplay = true;
|
||||
if (this->navigation->addCurrentPosToRoute()) {
|
||||
this->routeInfo = navigation->getRouteInfo();
|
||||
this->updateDisplay = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user