Changeset 3717 in ntrip for trunk/BNC/bncpostprocess.cpp


Ignore:
Timestamp:
Feb 23, 2012, 5:59:52 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpostprocess.cpp

    r3710 r3717  
    4545#include "pppopt.h"
    4646#include "bncpppclient.h"
    47 #include "rnxobsfile.h"
     47#include "rinex/rnxobsfile.h"
    4848#include "rnxnavfile.h"
    4949#include "corrfile.h"
     
    136136  // -------------------------
    137137  int   nEpo = 0;
    138   const t_rnxObsFile::t_epo* epo = 0;
     138  const t_rnxObsFile::t_rnxEpo* epo = 0;
    139139  while ( (epo = _rnxObsFile->nextEpoch()) != 0 ) {
    140140    ++nEpo;
     
    144144    }
    145145
    146     for (int iObs = 0; iObs < epo->satObs.size(); iObs++) {
    147       const t_rnxObsFile::t_satObs& satObs = epo->satObs[iObs];
     146    for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) {
     147      const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs];
    148148      t_obs obs;
    149149      strncpy(obs.StatID, _rnxObsFile->markerName().toAscii().constData(),
    150150              sizeof(obs.StatID));
    151       obs.satSys   = satObs.prn.toAscii().data()[0];
    152       obs.satNum   = satObs.prn.mid(1).toInt();
     151      obs.satSys   = rnxSat.satSys;
     152      obs.satNum   = rnxSat.satNum;
    153153      obs.GPSWeek  = epo->tt.gpsw();
    154154      obs.GPSWeeks = epo->tt.gpssec();
     
    156156        QByteArray type = _rnxObsFile->obsType(obs.satSys,iType).toAscii();
    157157        if      (type.indexOf("C1") == 0 && obs.C1  == 0.0) {
    158           obs.C1 = satObs[iType];
     158          obs.C1 = rnxSat.obs[iType];
    159159        }
    160160        else if (type.indexOf("P1") == 0 && obs.P1  == 0.0) {
    161           obs.P1 = satObs[iType];
     161          obs.P1 = rnxSat.obs[iType];
    162162        }
    163163        else if (type.indexOf("L1") == 0 && obs.L1C == 0.0) {
    164           obs.L1C = satObs[iType];
     164          obs.L1C = rnxSat.obs[iType];
    165165        }
    166166        else if (type.indexOf("C2") == 0 && obs.C2  == 0.0) {
    167           obs.C2 = satObs[iType];
     167          obs.C2 = rnxSat.obs[iType];
    168168        }
    169169        else if (type.indexOf("P2") == 0 && obs.P2  == 0.0) {
    170           obs.P2 = satObs[iType];
     170          obs.P2 = rnxSat.obs[iType];
    171171        }
    172172        else if (type.indexOf("L2") == 0 && obs.L2C == 0.0) {
    173           obs.L2C = satObs[iType];
     173          obs.L2C = rnxSat.obs[iType];
    174174        }
    175175      }
Note: See TracChangeset for help on using the changeset viewer.