- Timestamp:
- Feb 25, 2011, 4:22:14 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncantex.cpp
r3034 r3052 207 207 } 208 208 209 // Satellite Antenna Offset 210 //////////////////////////////////////////////////////////////////////////// 211 t_irc bncAntex::offset(const QString& prn, ColumnVector& neu) { 212 QMap<QString, t_antMap*>::const_iterator it = _maps.find(prn); 213 if (it != _maps.end()) { 214 t_antMap* map = it.value(); 215 neu[0] = map->frqMapL1->neu[0]; 216 neu[1] = map->frqMapL1->neu[1]; 217 neu[2] = map->frqMapL1->neu[2]; 218 return success; 219 } 220 else { 221 return failure; 222 } 223 } 224 209 225 // Phase Center Offset (Receiver Antenna and GPS only) 210 226 //////////////////////////////////////////////////////////////////////////// -
trunk/BNC/bncantex.h
r2938 r3052 38 38 void print() const; 39 39 double pco(const QString& antName, double eleSat, bool& found); 40 t_irc offset(const QString& prn, ColumnVector& neu); 40 41 41 42 private: -
trunk/BNC/combination/bnccomb.cpp
r3051 r3052 26 26 #include "bncpppclient.h" 27 27 #include "bnssp3.h" 28 #include "bncantex.h" 28 29 29 30 using namespace std; … … 187 188 188 189 _append = Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked; 190 191 // ANTEX File 192 // ---------- 193 _antex = 0; 194 QString antexFileName = settings.value("pppAntex").toString(); 195 if (!antexFileName.isEmpty()) { 196 _antex = new bncAntex(); 197 if (_antex->readFile(antexFileName) != success) { 198 emit newMessage("wrong ANTEX file", true); 199 delete _antex; 200 _antex = 0; 201 } 202 } 189 203 } 190 204 … … 200 214 delete _out; 201 215 delete _sp3; 216 delete _antex; 202 217 } 203 218 … … 367 382 bncPPPclient::applyCorr(resTime, corr, xc, vv); 368 383 xc(4) += 2.0 * DotProduct(xc.Rows(1,3),vv) / t_CST::c / t_CST::c; 384 if (_antex) { 385 ColumnVector neu(3); 386 if (_antex->offset(corr->prn, neu) == success) { 387 cout << neu.t(); 388 } 389 else { 390 cout << "antenna not found" << endl; 391 } 392 } 369 393 _sp3->write(resTime.gpsw(), resTime.gpssec(), corr->prn, xc, _append); 370 394 } -
trunk/BNC/combination/bnccomb.h
r3047 r3052 9 9 class cmbCaster; 10 10 class bnsSP3; 11 class bncAntex; 11 12 12 13 class cmbParam { … … 89 90 bnsSP3* _sp3; 90 91 bool _append; 92 bncAntex* _antex; 91 93 }; 92 94
Note:
See TracChangeset
for help on using the changeset viewer.