Ignore:
Timestamp:
Aug 8, 2014, 10:43:23 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppRunPostProc.cpp

    r5860 r5863  
    103103  else {
    104104    BNC_CORE->slotMessage(msg, false);
    105   }
    106 }
    107 
    108 // Set Observations from RINEX File
    109 ////////////////////////////////////////////////////////////////////////////
    110 void t_postProcessing::setObsFromRnx(const t_rnxObsFile* rnxObsFile,
    111                                      const t_rnxObsFile::t_rnxEpo* epo,
    112                                      const t_rnxObsFile::t_rnxSat& rnxSat,
    113                                      t_obs& obs) {
    114 
    115   strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(),
    116           sizeof(obs.StatID));
    117 
    118   obs.satSys   = rnxSat.satSys;
    119   obs.satNum   = rnxSat.satNum;
    120   obs.GPSWeek  = epo->tt.gpsw();
    121   obs.GPSWeeks = epo->tt.gpssec();
    122 
    123   for (int iType = 0; iType < rnxObsFile->nTypes(obs.satSys); iType++) {
    124     QString type = rnxObsFile->obsType(obs.satSys,iType).toAscii();
    125     obs.setMeasdata(type, rnxObsFile->version(), rnxSat.obs[iType]);
    126     if      (type.indexOf("L1") == 0) {
    127       obs.snrL1  = rnxSat.snr[iType];
    128       obs.slipL1 = (rnxSat.lli[iType] & 1);
    129     }
    130     else if (type.indexOf("L2") == 0) {
    131       obs.snrL2  = rnxSat.snr[iType];
    132       obs.slipL2 = (rnxSat.lli[iType] & 1);
    133     }
    134     else if (type.indexOf("L5") == 0) {
    135       obs.snrL5  = rnxSat.snr[iType];
    136       obs.slipL5 = (rnxSat.lli[iType] & 1);
    137     }
    138105  }
    139106}
Note: See TracChangeset for help on using the changeset viewer.