Skip to content

Commit 1a0baed

Browse files
committed
Use getSatellitesInViewCount()
Fix #505. In Base mode, getSatellitesInViewCount is correctly calculated where as getSatellitesUsedCount is always zero.
1 parent efd7b2a commit 1a0baed

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Firmware/RTK_Everywhere/GNSS_LG290P.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,9 +1111,10 @@ uint8_t GNSS_LG290P::getRtcmMessageNumberByName(const char *msgName)
11111111
uint8_t GNSS_LG290P::getSatellitesInView()
11121112
{
11131113
if (online.gnss)
1114-
// return (_lg290p->getSatellitesInView());
1115-
// Use getSatellitesUsed until SIV works correctly
1116-
return (_lg290p->getSatellitesUsedCount());
1114+
return (_lg290p->getSatellitesInViewCount() - 4);
1115+
// As of v1.0.1 of the LG290P library, getSatellitesInViewCount is reporting staillites that
1116+
// have 0 in view ("00"). NAVIC and QZSS satellites are the most common problem. Artificially
1117+
// reducing until a fix is in place.
11171118
return 0;
11181119
}
11191120

Firmware/RTK_Everywhere/menuSystem.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,10 +1146,10 @@ void menuPeriodicPrint()
11461146
systemPrint("7) WiFi state: ");
11471147
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_WIFI_STATE) ? "Enabled" : "Disabled");
11481148

1149-
systemPrint("8) ZED RX data: ");
1149+
systemPrint("8) GNSS RX data: ");
11501150
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_GNSS_DATA_RX) ? "Enabled" : "Disabled");
11511151

1152-
systemPrint("9) ZED TX data: ");
1152+
systemPrint("9) GNSS TX data: ");
11531153
systemPrintf("%s\r\n", PERIODIC_SETTING(PD_GNSS_DATA_TX) ? "Enabled" : "Disabled");
11541154

11551155
systemPrintln("----- Software -----");

0 commit comments

Comments
 (0)