Changeset 3680 in ntrip


Ignore:
Timestamp:
Feb 12, 2012, 11:42:49 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpostprocess.cpp

    r3675 r3680  
    110110  const t_rnxObsFile::t_epo* epo = 0;
    111111  while ( (epo = _rnxObsFile->nextEpoch()) != 0) {
    112 
     112    for (int iObs = 0; iObs < epo->satObs.size(); iObs++) {
     113      const t_rnxObsFile::t_satObs& satObs = epo->satObs[iObs];
     114      t_obs obs;
     115      strncpy(obs.StatID, _rnxObsFile->markerName().toAscii().constData(),
     116              sizeof(obs.StatID));
     117      obs.satSys   = satObs.prn.toAscii().data()[0];
     118      obs.satNum   = satObs.prn.mid(1).toInt();
     119      obs.GPSWeek  = epo->tt.gpsw();
     120      obs.GPSWeeks = epo->tt.gpssec();
     121    }
    113122  }
    114123
  • trunk/BNC/rnxobsfile.cpp

    r3679 r3680  
    153153const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpochV2() {
    154154  while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) {
     155
    155156    QString line = _stream->readLine();
     157
    156158    if (line.isEmpty()) {
    157159      continue;
    158160    }
     161
    159162    QTextStream in(line.toAscii());
     163
     164    // Epoch Time
     165    // ----------
    160166    int    year, month, day, hour, min, flag;
    161167    double sec;
     
    167173      year += 1900;
    168174    }
    169 
     175    _currEpo.tt.set(year, month, day, hour, min, sec);
     176
     177    // Number of Satellites
     178    // --------------------
    170179    int numSat;
    171180    readInt(line, 29, 3, numSat);
  • trunk/BNC/rnxobsfile.h

    r3677 r3680  
    2929#include "newmat.h"
    3030#include "bncconst.h"
     31#include "bnctime.h"
    3132
    3233class t_pppOpt;
     
    6061  ~t_rnxObsFile();
    6162
     63  int   nTypes() const {return _header.nTypes();}
     64  const QString& obsType(int index) const {return _header.obsType(index);}
     65  const QString& antennaName() const {return _header.antennaName();}
     66  const QString& markerName() const {return _header.markerName();}
     67  const ColumnVector& xyz() const {return _header.xyz();}
     68  const ColumnVector& antNEU() const {return _header.antNEU();}
     69
    6270  class t_satObs : public ColumnVector {
    6371   public:
     
    7280      satObs.clear();
    7381    }
     82    bncTime           tt;
    7483    QVector<t_satObs> satObs;
    7584  };
Note: See TracChangeset for help on using the changeset viewer.