Changeset 2894 in ntrip
- Timestamp:
- Jan 26, 2011, 4:55:35 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncantex.cpp ¶
r2891 r2894 61 61 } 62 62 63 // 63 // Print 64 64 //////////////////////////////////////////////////////////////////////////// 65 65 void bncAntex::print() const { … … 86 86 } 87 87 88 // 88 // Read ANTEX File 89 89 //////////////////////////////////////////////////////////////////////////// 90 90 t_irc bncAntex::readFile(const QString& fileName) { … … 182 182 QTextStream inLine(&line, QIODevice::ReadOnly); 183 183 inLine >> newFrqMap->neu[0] >> newFrqMap->neu[1] >> newFrqMap->neu[2]; 184 newFrqMap->neu[0] *= 1e-3; 185 newFrqMap->neu[1] *= 1e-3; 186 newFrqMap->neu[2] *= 1e-3; 184 187 } 185 188 else if (line.indexOf("NOAZI") == 3) { … … 192 195 inLine >> newFrqMap->pattern[ii]; 193 196 } 197 newFrqMap->pattern *= 1e-3; 194 198 } 195 199 } … … 199 203 return success; 200 204 } 205 206 // Phase Center Offset (Receiver Antenna and GPS only) 207 //////////////////////////////////////////////////////////////////////////// 208 double bncAntex::pco(const QString& antName, double eleSat) { 209 210 static const double f1 = t_CST::freq1; 211 static const double f2 = t_CST::freq2; 212 static const double c1 = f1 * f1 / (f1 * f1 - f2 * f2); 213 static const double c2 = - f2 * f2 / (f1 * f1 - f2 * f2); 214 215 QMap<QString, t_antMap*>::const_iterator it = _maps.find(antName); 216 if (it != _maps.end()) { 217 t_antMap* map = it.value(); 218 if (map->frqMapL1 && map->frqMapL2) { 219 double corr1 = -map->frqMapL1->neu[2] * sin(eleSat); 220 double corr2 = -map->frqMapL2->neu[2] * sin(eleSat); 221 return c1 * corr1 + c2 * corr2; 222 } 223 } 224 225 return 0.0; 226 } -
TabularUnified trunk/BNC/bncantex.h ¶
r2887 r2894 37 37 t_irc readFile(const QString& fileName); 38 38 void print() const; 39 double pco(const QString& antName, double eleSat); 39 40 40 41 private: -
TabularUnified trunk/BNC/bncmodel.cpp ¶
r2893 r2894 267 267 _antex = 0; 268 268 } 269 _antennaName = settings.value("pppAntenna").toString(); 269 270 } 270 271 … … 386 387 } 387 388 388 return satData->rho + clk() + offset - satData->clk + tropDelay + wind; 389 double phaseCenter = 0.0; 390 if (_antex) { 391 phaseCenter = _antex->pco(_antennaName, satData->eleSat); 392 } 393 394 return satData->rho + phaseCenter + clk() 395 + offset - satData->clk + tropDelay + wind; 389 396 } 390 397 -
TabularUnified trunk/BNC/bncmodel.h ¶
r2881 r2894 155 155 double _sigClk0; 156 156 bncAntex* _antex; 157 QString _antennaName; 157 158 }; 158 159
Note:
See TracChangeset
for help on using the changeset viewer.