@@ -553,7 +553,7 @@ void applyCompensationGNS(char *nmeaSentence, int arraySize)
553553 // Add interstitial between end of lon and beginning of alt
554554 strncat (newSentence, nmeaSentence + longitudeStop, altitudeStart - longitudeStop);
555555 }
556- else // No tilt compensation, no changes the lat/lon
556+ else // No tilt compensation, no changes to the lat/lon
557557 {
558558 // Add start of message up to altitude
559559 strncat (newSentence, nmeaSentence, altitudeStart);
@@ -870,14 +870,6 @@ void applyCompensationGGA(char *nmeaSentence, int arraySize)
870870 strncpy (undulationStr, &nmeaSentence[undulationStart], undulationStop - undulationStart);
871871 float undulation = (float )atof (undulationStr);
872872
873- float orthometricHeight = 0 ;
874-
875- if (tiltIsCorrecting () == true )
876- {
877- // Remove the undulation from the IMU's altitude
878- orthometricHeight = tiltSensor->getNaviAltitude () - undulation;
879- }
880-
881873 char newSentence[150 ] = {0 };
882874
883875 if (sizeof (newSentence) < arraySize)
@@ -915,7 +907,7 @@ void applyCompensationGGA(char *nmeaSentence, int arraySize)
915907 // Add interstitial between end of lon and beginning of alt
916908 strncat (newSentence, nmeaSentence + longitudeStop, altitudeStart - longitudeStop);
917909 }
918- else // No tilt compensation, no changes the lat/lon
910+ else // No tilt compensation, no changes to the lat/lon
919911 {
920912 // Add start of message up to altitude
921913 strncat (newSentence, nmeaSentence, altitudeStart);
0 commit comments