Skip to content

Commit 12f47df

Browse files
committed
Add prints for PPP converged.
1 parent 626b7ed commit 12f47df

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Firmware/RTK_Everywhere/GNSS.ino

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,40 @@ bool gnssIsRTKFloat()
741741
return (false);
742742
}
743743

744+
bool gnssIsPppConverging()
745+
{
746+
if (online.gnss == true)
747+
{
748+
if (present.gnss_zedf9p)
749+
{
750+
return (false);
751+
}
752+
else if (present.gnss_um980)
753+
{
754+
if (um980GetPositionType() == 68) // 68 = PPP solution converging
755+
return (true);
756+
}
757+
}
758+
return (false);
759+
}
760+
761+
bool gnssIsPppConverged()
762+
{
763+
if (online.gnss == true)
764+
{
765+
if (present.gnss_zedf9p)
766+
{
767+
return (false);
768+
}
769+
else if (present.gnss_um980)
770+
{
771+
if (um980GetPositionType() == 69) // 69 = Precision Point Positioning
772+
return (true);
773+
}
774+
}
775+
return (false);
776+
}
777+
744778
float gnssGetHorizontalAccuracy()
745779
{
746780
if (online.gnss == true)

Firmware/RTK_Everywhere/System.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ void printReports()
377377
systemPrint("RTK Fix");
378378
else if (gnssIsRTKFloat() == true)
379379
systemPrint("RTK Float");
380+
else if (gnssIsPppConverged() == true)
381+
systemPrint("PPP Converged");
382+
else if (gnssIsPppConverging() == true)
383+
systemPrint("PPP Converging");
380384
else if (gnssIsDgpsFixed() == true)
381385
systemPrint("DGPS Fix");
382386
else if (gnssIsFixed() == true)

0 commit comments

Comments
 (0)