Changeset 5883 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Aug 8, 2014, 3:51:27 PM (10 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcanalyze.cpp
r5863 r5883 57 57 58 58 const double SLIPTRESH = 10.0; // cycle-slip threshold (meters) 59 60 // Set Observations from RINEX File61 ////////////////////////////////////////////////////////////////////////////62 void t_reqcAnalyze::setObsFromRnx(const t_rnxObsFile* rnxObsFile,63 const t_rnxObsFile::t_rnxEpo* epo,64 const t_rnxObsFile::t_rnxSat& rnxSat,65 t_obs& obs) {66 67 strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(),68 sizeof(obs.StatID));69 70 obs.satSys = rnxSat.satSys;71 obs.satNum = rnxSat.satNum;72 obs.GPSWeek = epo->tt.gpsw();73 obs.GPSWeeks = epo->tt.gpssec();74 75 for (int iType = 0; iType < rnxObsFile->nTypes(obs.satSys); iType++) {76 QString type = rnxObsFile->obsType(obs.satSys,iType).toAscii();77 obs.setMeasdata(type, rnxObsFile->version(), rnxSat.obs[iType]);78 if (type.indexOf("L1") == 0) {79 obs.snrL1 = rnxSat.snr[iType];80 obs.slipL1 = (rnxSat.lli[iType] & 1);81 }82 else if (type.indexOf("L2") == 0) {83 obs.snrL2 = rnxSat.snr[iType];84 obs.slipL2 = (rnxSat.lli[iType] & 1);85 }86 else if (type.indexOf("L5") == 0) {87 obs.snrL5 = rnxSat.snr[iType];88 obs.slipL5 = (rnxSat.lli[iType] & 1);89 }90 }91 }92 59 93 60 // Constructor -
trunk/BNC/src/rinex/reqcanalyze.h
r5863 r5883 169 169 QVector<t_polarPoint*>* dataSNR2); 170 170 171 void setObsFromRnx(const t_rnxObsFile* rnxObsFile,172 const t_rnxObsFile::t_rnxEpo* epo,173 const t_rnxObsFile::t_rnxSat& rnxSat,174 t_obs& obs);175 176 171 QString _logFileName; 177 172 QFile* _logFile; -
trunk/BNC/src/rinex/rnxobsfile.cpp
r5742 r5883 1104 1104 } 1105 1105 } 1106 1107 // Set Observations from RINEX File 1108 //////////////////////////////////////////////////////////////////////////// 1109 void t_rnxObsFile::setObsFromRnx(const t_rnxObsFile* rnxObsFile, 1110 const t_rnxObsFile::t_rnxEpo* epo, 1111 const t_rnxObsFile::t_rnxSat& rnxSat, 1112 t_obs& obs) { 1113 1114 strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(), 1115 sizeof(obs.StatID)); 1116 1117 obs.satSys = rnxSat.satSys; 1118 obs.satNum = rnxSat.satNum; 1119 obs.GPSWeek = epo->tt.gpsw(); 1120 obs.GPSWeeks = epo->tt.gpssec(); 1121 1122 for (int iType = 0; iType < rnxObsFile->nTypes(obs.satSys); iType++) { 1123 QString type = rnxObsFile->obsType(obs.satSys,iType).toAscii(); 1124 obs.setMeasdata(type, rnxObsFile->version(), rnxSat.obs[iType]); 1125 if (type.indexOf("L1") == 0) { 1126 obs.snrL1 = rnxSat.snr[iType]; 1127 obs.slipL1 = (rnxSat.lli[iType] & 1); 1128 } 1129 else if (type.indexOf("L2") == 0) { 1130 obs.snrL2 = rnxSat.snr[iType]; 1131 obs.slipL2 = (rnxSat.lli[iType] & 1); 1132 } 1133 else if (type.indexOf("L5") == 0) { 1134 obs.snrL5 = rnxSat.snr[iType]; 1135 obs.slipL5 = (rnxSat.lli[iType] & 1); 1136 } 1137 } 1138 } 1139 -
trunk/BNC/src/rinex/rnxobsfile.h
r5742 r5883 36 36 #include "bnctime.h" 37 37 #include "t_prn.h" 38 #include "GPSDecoder.h" 38 39 39 40 class t_rnxObsHeader { … … 144 145 QTextStream* stream() {return _stream;} 145 146 147 static void setObsFromRnx(const t_rnxObsFile* rnxObsFile, 148 const t_rnxObsFile::t_rnxEpo* epo, 149 const t_rnxObsFile::t_rnxSat& rnxSat, 150 t_obs& obs); 151 146 152 private: 147 153 enum e_trafo {trafoNone, trafo2to3, trafo3to2};
Note:
See TracChangeset
for help on using the changeset viewer.