From b2c0d3afb26e28de5a8269cf94a22e651f51b152 Mon Sep 17 00:00:00 2001 From: Nathan Seidle Date: Wed, 1 May 2024 10:36:15 -0600 Subject: [PATCH] Add PPL debug print --- Firmware/RTK_Everywhere/PointPerfectLibrary.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Firmware/RTK_Everywhere/PointPerfectLibrary.ino b/Firmware/RTK_Everywhere/PointPerfectLibrary.ino index 8186e2b50..9e0853734 100644 --- a/Firmware/RTK_Everywhere/PointPerfectLibrary.ino +++ b/Firmware/RTK_Everywhere/PointPerfectLibrary.ino @@ -224,6 +224,13 @@ void updatePPL() systemPrintln("PPL GNSS Data is stale"); } } + + if (gnssIsRTKFix() && rtkTimeToFixMs == 0) + { + rtkTimeToFixMs = millis(); + if (settings.debugCorrections == true) + systemPrintf("Time to first PPL RTK Fix: %ds\r\n", rtkTimeToFixMs / 1000); + } } // The PPL is fed during updatePplTask()