@@ -33,8 +33,8 @@ void updatePplTask(void *e)
33
33
{
34
34
if (rtcmLength > 0 )
35
35
{
36
- updateCorrectionsLastSeen (CORR_LBAND );
37
- if (isHighestRegisteredCorrectionsSource (CORR_LBAND ))
36
+ updateCorrectionsLastSeen (pplCorrectionsSource );
37
+ if (isHighestRegisteredCorrectionsSource (pplCorrectionsSource ))
38
38
{
39
39
// Set ZED SOURCE to 1 (L-Band) if needed
40
40
// Note: this is almost certainly redundant. It would only be used if we
@@ -318,17 +318,18 @@ bool sendGnssToPpl(uint8_t *buffer, int numDataBytes)
318
318
return false ;
319
319
}
320
320
321
- // Send Spartn packets from PointPerfect (either IP or L-Band) to PPL
321
+ // Send Spartn packets from PointPerfect to PPL
322
322
bool sendSpartnToPpl (uint8_t *buffer, int numDataBytes)
323
323
{
324
324
if (online.ppl == true )
325
325
{
326
+ pplCorrectionsSource = CORR_IP;
326
327
327
328
ePPL_ReturnStatus result = PPL_SendSpartn (buffer, numDataBytes);
328
329
if (result != ePPL_Success)
329
330
{
330
331
if (settings.debugCorrections == true )
331
- systemPrintf (" ERROR processRXMPMP PPL_SendSpartn: %s\r\n " , PPLReturnStatusToStr (result));
332
+ systemPrintf (" ERROR PPL_SendSpartn: %s\r\n " , PPLReturnStatusToStr (result));
332
333
return false ;
333
334
}
334
335
lastMqttToPpl = millis ();
@@ -342,6 +343,31 @@ bool sendSpartnToPpl(uint8_t *buffer, int numDataBytes)
342
343
return false ;
343
344
}
344
345
346
+ // Send raw L-Band Spartn packets from mosaic X5 to PPL
347
+ bool sendAuxSpartnToPpl (uint8_t *buffer, int numDataBytes)
348
+ {
349
+ if (online.ppl == true )
350
+ {
351
+ pplCorrectionsSource = CORR_LBAND;
352
+
353
+ ePPL_ReturnStatus result = PPL_SendAuxSpartn (buffer, numDataBytes);
354
+ if (result != ePPL_Success)
355
+ {
356
+ if (settings.debugCorrections == true )
357
+ systemPrintf (" ERROR PPL_SendAuxSpartn: %s\r\n " , PPLReturnStatusToStr (result));
358
+ return false ;
359
+ }
360
+ lastMqttToPpl = millis ();
361
+ return true ;
362
+ }
363
+ else
364
+ {
365
+ pplLBandCorrections = true ; // Notify updatePPL() that L-Band is online
366
+ }
367
+
368
+ return false ;
369
+ }
370
+
345
371
// Print human-readable PPL status
346
372
const char *PPLReturnStatusToStr (ePPL_ReturnStatus status)
347
373
{
0 commit comments