added magDec to manualDrive Menu

This commit is contained in:
2023-08-07 23:25:31 +02:00
parent d6bc7e4239
commit ebe4d32523
3 changed files with 18 additions and 4 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
// AUTO GENERATED FILE, DO NOT EDIT // AUTO GENERATED FILE, DO NOT EDIT
#ifndef VERSION #ifndef VERSION
#define VERSION "0.1.7" #define VERSION "0.1.10"
#endif #endif
#ifndef BUILD_TIMESTAMP #ifndef BUILD_TIMESTAMP
#define BUILD_TIMESTAMP "2023-08-07 21:22:27.260906" #define BUILD_TIMESTAMP "2023-08-07 22:02:51.554203"
#endif #endif
@@ -65,6 +65,20 @@ void MenuManualControl::printPage() const {
lineTwo.concat(this->driveManager->getNavigation()->getAzimuth()); lineTwo.concat(this->driveManager->getNavigation()->getAzimuth());
break; 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: default:
this->printDefault(); this->printDefault();
return; return;
@@ -77,7 +91,7 @@ void MenuManualControl::init() {
this->firstPrint = false; this->firstPrint = false;
this->driveManager->changeModus(Modi::ManualControl); this->driveManager->changeModus(Modi::ManualControl);
this->manualControl = (ManualControl*) this->driveManager->getDriveModiPtr(); this->manualControl = (ManualControl*) this->driveManager->getDriveModiPtr();
this->setCountPages(8); this->setCountPages(9);
this->updateDelay = 500; this->updateDelay = 500;
} }
+1 -1
View File
@@ -1 +1 @@
0.1.7 0.1.10