@@ -553,7 +553,7 @@ void applyCompensationGNS(char *nmeaSentence, int arraySize)
553
553
// Add interstitial between end of lon and beginning of alt
554
554
strncat (newSentence, nmeaSentence + longitudeStop, altitudeStart - longitudeStop);
555
555
}
556
- else // No tilt compensation, no changes the lat/lon
556
+ else // No tilt compensation, no changes to the lat/lon
557
557
{
558
558
// Add start of message up to altitude
559
559
strncat (newSentence, nmeaSentence, altitudeStart);
@@ -870,14 +870,6 @@ void applyCompensationGGA(char *nmeaSentence, int arraySize)
870
870
strncpy (undulationStr, &nmeaSentence[undulationStart], undulationStop - undulationStart);
871
871
float undulation = (float )atof (undulationStr);
872
872
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
-
881
873
char newSentence[150 ] = {0 };
882
874
883
875
if (sizeof (newSentence) < arraySize)
@@ -915,7 +907,7 @@ void applyCompensationGGA(char *nmeaSentence, int arraySize)
915
907
// Add interstitial between end of lon and beginning of alt
916
908
strncat (newSentence, nmeaSentence + longitudeStop, altitudeStart - longitudeStop);
917
909
}
918
- else // No tilt compensation, no changes the lat/lon
910
+ else // No tilt compensation, no changes to the lat/lon
919
911
{
920
912
// Add start of message up to altitude
921
913
strncat (newSentence, nmeaSentence, altitudeStart);
0 commit comments