added fixtype and carrier solution to gps menu
This commit is contained in:
@@ -79,6 +79,38 @@ void MenuGPS::printPage() const {
|
||||
break;
|
||||
|
||||
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());
|
||||
|
||||
Reference in New Issue
Block a user