Skip to content

Commit 43e741c

Browse files
committed
Pass all NMEA to compensator
1 parent 83989bb commit 43e741c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Firmware/RTK_Everywhere/Tasks.ino

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,11 @@ void processUart1Message(SEMP_PARSE_STATE *parse, uint16_t type)
477477
}
478478
}
479479

480-
if (tiltIsCorrecting() == true)
480+
// Handle LLA compensation due to tilt or outputTipAltitude setting
481+
if (type == RTK_NMEA_PARSER_INDEX)
481482
{
482-
if (type == RTK_NMEA_PARSER_INDEX)
483-
{
484-
parse->buffer[parse->length++] = '\0'; // Null terminate string
485-
tiltApplyCompensation((char *)parse->buffer, parse->length);
486-
}
483+
parse->buffer[parse->length++] = '\0'; // Null terminate string
484+
nmeaApplyCompensation((char *)parse->buffer, parse->length);
487485
}
488486

489487
// Determine where to send RTCM data

0 commit comments

Comments
 (0)