added fixtype and carrier solution to gps menu

This commit is contained in:
2023-04-27 12:15:06 +02:00
parent 06f88f9a00
commit 8e5a47f65b
+35 -3
View File
@@ -78,7 +78,39 @@ void MenuGPS::printPage() const {
}
break;
case 4:
case 4:
lineOne = "Fix type:";
if (fixType == 0)
lineTwo = "None";
else if (fixType == 1)
lineTwo = "Dead Reckoning";
else if (fixType == 2)
lineTwo = "2D";
else if (fixType == 3)
lineTwo = "3D";
else if (fixType == 3)
lineTwo = "GNSS + Dead Reck";
else if (fixType == 5)
lineTwo = "Time Only";
else
lineTwo = "UNKNOWN";
break;
case 5: {
lineOne = "Carrier Solution";
uint8_t carrSoln = gpsData->flags.bits.carrSoln;
if (carrSoln == 0)
lineTwo = "None";
else if (carrSoln == 1)
lineTwo = "Floating";
else if (carrSoln == 2)
lineTwo = "Fixed";
else
lineTwo = "UNKNOWN";
}
break;
case 6:
lineOne = "Hrizntl Accuracy";
if (fixType) {
lineTwo = "";
@@ -87,7 +119,7 @@ void MenuGPS::printPage() const {
lineTwo = "0";
break;
case 5:
case 7:
lineOne = "magDec: ";
lineTwo = "magAcc: ";
if (fixType) {
@@ -99,7 +131,7 @@ void MenuGPS::printPage() const {
}
break;
case 6:
case 8:
lineOne = "Azimuth: ";
lineTwo = "";
lineTwo.concat(this->navigation->getAzimuth());