added magDec to manualDrive Menu
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
|
||||
// AUTO GENERATED FILE, DO NOT EDIT
|
||||
#ifndef VERSION
|
||||
#define VERSION "0.1.7"
|
||||
#define VERSION "0.1.10"
|
||||
#endif
|
||||
#ifndef BUILD_TIMESTAMP
|
||||
#define BUILD_TIMESTAMP "2023-08-07 21:22:27.260906"
|
||||
#define BUILD_TIMESTAMP "2023-08-07 22:02:51.554203"
|
||||
#endif
|
||||
|
||||
@@ -65,6 +65,20 @@ void MenuManualControl::printPage() const {
|
||||
lineTwo.concat(this->driveManager->getNavigation()->getAzimuth());
|
||||
break;
|
||||
|
||||
case 8: {
|
||||
UBX_NAV_PVT_data_t* gpsData = this->driveManager->getNavigation()->getUbxData();
|
||||
lineOne = "magDec: ";
|
||||
lineTwo = "magAcc: ";
|
||||
if (gpsData->valid.bits.validMag) {
|
||||
lineOne.concat(gpsData->magDec);
|
||||
lineTwo.concat(gpsData->magAcc);
|
||||
} else {
|
||||
lineOne.concat("invalid");
|
||||
lineTwo.concat("invalid");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
this->printDefault();
|
||||
return;
|
||||
@@ -77,7 +91,7 @@ void MenuManualControl::init() {
|
||||
this->firstPrint = false;
|
||||
this->driveManager->changeModus(Modi::ManualControl);
|
||||
this->manualControl = (ManualControl*) this->driveManager->getDriveModiPtr();
|
||||
this->setCountPages(8);
|
||||
this->setCountPages(9);
|
||||
this->updateDelay = 500;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user