Changeset 2938 in ntrip


Ignore:
Timestamp:
Jan 30, 2011, 12:53:57 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncantex.cpp

    r2894 r2938  
    206206// Phase Center Offset (Receiver Antenna and GPS only)
    207207////////////////////////////////////////////////////////////////////////////
    208 double bncAntex::pco(const QString& antName, double eleSat) {
     208double bncAntex::pco(const QString& antName, double eleSat, bool& found) {
    209209
    210210  static const double f1 = t_CST::freq1;
     
    215215  QMap<QString, t_antMap*>::const_iterator it = _maps.find(antName);
    216216  if (it != _maps.end()) {
     217    found = true;
    217218    t_antMap* map = it.value();
    218219    if (map->frqMapL1 && map->frqMapL2) {
     
    222223    }
    223224  }
     225  else {
     226    found = false;
     227  }
    224228
    225229  return 0.0;
  • trunk/BNC/bncantex.h

    r2894 r2938  
    3737  t_irc readFile(const QString& fileName); 
    3838  void print() const;
    39   double pco(const QString& antName, double eleSat);
     39  double pco(const QString& antName, double eleSat, bool& found);
    4040
    4141 private:
  • trunk/BNC/bncmodel.cpp

    r2896 r2938  
    264264    _antex = new bncAntex();
    265265    if (_antex->readFile(antexFileName) != success) {
    266       emit newMessage("wrong ANTEX file", false);
     266      emit newMessage("wrong ANTEX file", true);
    267267      delete _antex;
    268268      _antex = 0;
    269269    }
    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  }
    276274}
    277275
     
    389387
    390388  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    }
    393396  }
    394397
Note: See TracChangeset for help on using the changeset viewer.