mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Solve Log warnings when GPS PRN 32 is visible
This commit is contained in:
parent
057d19d98e
commit
af69cba8e1
@ -3630,9 +3630,9 @@ int Rtcm::set_DF008(short int smoothing_interval)
|
|||||||
int Rtcm::set_DF009(const Gnss_Synchro & gnss_synchro)
|
int Rtcm::set_DF009(const Gnss_Synchro & gnss_synchro)
|
||||||
{
|
{
|
||||||
unsigned int prn_ = gnss_synchro.PRN;
|
unsigned int prn_ = gnss_synchro.PRN;
|
||||||
if(prn_ > 31)
|
if(prn_ > 32)
|
||||||
{
|
{
|
||||||
LOG(WARNING) << "GPS satellite ID must be between 0 and 31, but PRN " << prn_ << " was found";
|
LOG(WARNING) << "GPS satellite ID must be between 1 and 32, but PRN " << prn_ << " was found";
|
||||||
}
|
}
|
||||||
DF009 = std::bitset<6>(prn_);
|
DF009 = std::bitset<6>(prn_);
|
||||||
return 0;
|
return 0;
|
||||||
@ -3642,9 +3642,9 @@ int Rtcm::set_DF009(const Gnss_Synchro & gnss_synchro)
|
|||||||
int Rtcm::set_DF009(const Gps_Ephemeris & gps_eph)
|
int Rtcm::set_DF009(const Gps_Ephemeris & gps_eph)
|
||||||
{
|
{
|
||||||
unsigned int prn_ = gps_eph.i_satellite_PRN;
|
unsigned int prn_ = gps_eph.i_satellite_PRN;
|
||||||
if(prn_ > 31)
|
if(prn_ > 32)
|
||||||
{
|
{
|
||||||
LOG(WARNING) << "GPS satellite ID must be between 0 and 31, but PRN " << prn_ << " was found";
|
LOG(WARNING) << "GPS satellite ID must be between 1 and 32, but PRN " << prn_ << " was found";
|
||||||
}
|
}
|
||||||
DF009 = std::bitset<6>(prn_);
|
DF009 = std::bitset<6>(prn_);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user