Skip to content

Commit 3eca339

Browse files
committed
Remove dead code. Typo fix.
1 parent f0839bd commit 3eca339

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Firmware/RTK_Everywhere/Tilt.ino

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)