added increase and decrease to navigation

This commit is contained in:
2023-05-24 14:47:59 +02:00
parent 52590e9e2f
commit 49e0c2d1ef
3 changed files with 13 additions and 16 deletions
@@ -86,21 +86,13 @@ void MenuAutopilot::printPage() const {
lineTwo.concat(correction.correction);
break;
case 2: {
uint16_t currentPoint = this->autopilot->getRouteInfo().currentPoint;
uint16_t totalPoints = this->autopilot->getRouteInfo().totalPoints;
if (currentPoint > totalPoints) {
lineOne = "Target reached";
lineTwo = "";
} else {
lineOne = "Target waypoint";
lineTwo = "";
lineTwo.concat(currentPoint);
lineTwo.concat(" from ");
lineTwo.concat(totalPoints);
}
case 2:
lineOne = "Target waypoint";
lineTwo = "";
lineTwo.concat(this->autopilot->getRouteInfo().currentPoint);
lineTwo.concat(" from ");
lineTwo.concat(this->autopilot->getRouteInfo().totalPoints);
break;
}
case 3: {
NTRIPClientStates status = this->driveManager->getNavigation()->getNTRIPClient()->getClientState();
@@ -142,7 +134,6 @@ void MenuAutopilot::printPage() const {
case 6:
lineOne = "Restart the";
lineTwo = "Autopilot";
this->autopilot->restart();
break;
case 7: