Changeset 4562 in ntrip


Ignore:
Timestamp:
Aug 28, 2012, 1:16:53 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4559 r4562  
    296296  double S1 = obs.measdata("S1", 3.0);
    297297  if (S1 != 0.0) {
    298     newObs->_SNR1 = S1;
     298    newObs->_SNR1 = floor(S1/6);
     299    if (newObs->_SNR1 > 9.0) {
     300      newObs->_SNR1 = 9.0;
     301    }
     302    if (newObs->_SNR1 < 1.0) {
     303      newObs->_SNR1 = 1.0;
     304    }
    299305    okFlag = true;
     306  }
     307  else {
     308    if (obs.snrL1 > 0) {
     309      newObs->_SNR1 = obs.snrL1;
     310      okFlag = true;
     311    }
    300312  }
    301313  double S2 = obs.measdata("S2", 3.0);
    302314  if (S2 != 0.0) {
    303     newObs->_SNR2 = S2;
     315    newObs->_SNR2 = floor(S2/6);
     316    if (newObs->_SNR2 > 9.0) {
     317      newObs->_SNR2 = 9.0;
     318    }
     319    if (newObs->_SNR2 < 1.0) {
     320      newObs->_SNR2 = 1.0;
     321    }
    304322    okFlag = true;
     323  }
     324  else {
     325    if (obs.snrL2 > 0) {
     326      newObs->_SNR2 = obs.snrL2;
     327      okFlag = true;
     328    }
    305329  }
    306330
Note: See TracChangeset for help on using the changeset viewer.