- Timestamp:
- Feb 12, 2012, 11:42:49 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpostprocess.cpp
r3675 r3680 110 110 const t_rnxObsFile::t_epo* epo = 0; 111 111 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 } 113 122 } 114 123 -
trunk/BNC/rnxobsfile.cpp
r3679 r3680 153 153 const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpochV2() { 154 154 while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) { 155 155 156 QString line = _stream->readLine(); 157 156 158 if (line.isEmpty()) { 157 159 continue; 158 160 } 161 159 162 QTextStream in(line.toAscii()); 163 164 // Epoch Time 165 // ---------- 160 166 int year, month, day, hour, min, flag; 161 167 double sec; … … 167 173 year += 1900; 168 174 } 169 175 _currEpo.tt.set(year, month, day, hour, min, sec); 176 177 // Number of Satellites 178 // -------------------- 170 179 int numSat; 171 180 readInt(line, 29, 3, numSat); -
trunk/BNC/rnxobsfile.h
r3677 r3680 29 29 #include "newmat.h" 30 30 #include "bncconst.h" 31 #include "bnctime.h" 31 32 32 33 class t_pppOpt; … … 60 61 ~t_rnxObsFile(); 61 62 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 62 70 class t_satObs : public ColumnVector { 63 71 public: … … 72 80 satObs.clear(); 73 81 } 82 bncTime tt; 74 83 QVector<t_satObs> satObs; 75 84 };
Note:
See TracChangeset
for help on using the changeset viewer.