From e4d4e7e524af75bc9eba20898d5404b93b9c15fc Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Fri, 4 Dec 2020 21:15:11 +0000 Subject: [PATCH] Set higher data rate 1 or 2Hz by NavRate --- main/gps.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main/gps.cpp b/main/gps.cpp index 00f4be1..25d5a6a 100644 --- a/main/gps.cpp +++ b/main/gps.cpp @@ -102,8 +102,8 @@ FlightMonitor Flight; static char GPS_Cmd[64]; -static uint16_t SatSNRsum = 0; -static uint8_t SatSNRcount = 0; +static uint16_t SatSNRsum = 0; // sum up the satellite SNR's +static uint8_t SatSNRcount = 0; // sum counter struct GPS_Sat // store GPS satellite data in single 32-bit word { union @@ -131,8 +131,8 @@ static void ProcessGSV(NMEA_RxMsg &GSV) // process GxGSV to extract if(GSV.Parms<3) return; int8_t Pkts=Read_Dec1((const char *)GSV.ParmPtr(0)); if(Pkts<0) return; int8_t Pkt =Read_Dec1((const char *)GSV.ParmPtr(1)); if(Pkt <0) return; - int8_t Sats=Read_Dec2((const char *)GSV.ParmPtr(2)); - if(Sats<0) Sats=Read_Dec1((const char *)GSV.ParmPtr(2)); + int8_t Sats=Read_Dec2((const char *)GSV.ParmPtr(2)); // + if(Sats<0) Sats=Read_Dec1((const char *)GSV.ParmPtr(2)); // if(Sats<0) return; for( int Parm=3; Parm0) { -#ifdef WITH_GPS_UBS +#ifdef WITH_GPS_UBX #ifdef WITH_GPS_ENABLE GPS_ENABLE(); #endif