added increase and decrease to navigation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user