- Timestamp:
- Jan 30, 2011, 12:53:57 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncantex.cpp
r2894 r2938 206 206 // Phase Center Offset (Receiver Antenna and GPS only) 207 207 //////////////////////////////////////////////////////////////////////////// 208 double bncAntex::pco(const QString& antName, double eleSat ) {208 double bncAntex::pco(const QString& antName, double eleSat, bool& found) { 209 209 210 210 static const double f1 = t_CST::freq1; … … 215 215 QMap<QString, t_antMap*>::const_iterator it = _maps.find(antName); 216 216 if (it != _maps.end()) { 217 found = true; 217 218 t_antMap* map = it.value(); 218 219 if (map->frqMapL1 && map->frqMapL2) { … … 222 223 } 223 224 } 225 else { 226 found = false; 227 } 224 228 225 229 return 0.0; -
trunk/BNC/bncantex.h
r2894 r2938 37 37 t_irc readFile(const QString& fileName); 38 38 void print() const; 39 double pco(const QString& antName, double eleSat );39 double pco(const QString& antName, double eleSat, bool& found); 40 40 41 41 private: -
trunk/BNC/bncmodel.cpp
r2896 r2938 264 264 _antex = new bncAntex(); 265 265 if (_antex->readFile(antexFileName) != success) { 266 emit newMessage("wrong ANTEX file", false);266 emit newMessage("wrong ANTEX file", true); 267 267 delete _antex; 268 268 _antex = 0; 269 269 } 270 _antennaName = settings.value("pppAntenna").toString(); 271 } 272 273 //// if (_antex) { 274 //// _antex->print(); 275 //// } 270 else { 271 _antennaName = settings.value("pppAntenna").toString(); 272 } 273 } 276 274 } 277 275 … … 389 387 390 388 double phaseCenter = 0.0; 391 if (_antex) { 392 phaseCenter = _antex->pco(_antennaName, satData->eleSat); 389 if (_antex) { 390 bool found; 391 phaseCenter = _antex->pco(_antennaName, satData->eleSat, found); 392 if (!found) { 393 emit newMessage("ANTEX: antenna >" 394 + _antennaName.toAscii() + "< not found", true); 395 } 393 396 } 394 397
Note:
See TracChangeset
for help on using the changeset viewer.