Changeset 7523 in ntrip


Ignore:
Timestamp:
Oct 19, 2015, 3:01:57 PM (9 years ago)
Author:
stuerze
Message:

minor changes to add receiver information in sinex troposphere file header

Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncsinextro.cpp

    r7521 r7523  
    8585
    8686
    87   QString numberOfEpochs = QString("%1").arg(intr/_sampl, 5, 10, QLatin1Char('0'));
     87  QString numberOfEpochs = QString("%1").arg(1, 5, 10, QLatin1Char('0'));
    8888  _out << "%=TRO 2.00 BNC " << creationTime.toStdString() << " BNC "
    8989       << startTime.toStdString() << " " << endTime.toStdString() << " P "
     
    102102  _out << "-SITE/ID" << endl << endl;
    103103
    104 
    105   _out << "+SITE/RECEIVER" << endl;
    106   _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__ FIRMWARE___" << endl;
    107   _out << " " << _opt->_roverName.substr(0,4) << "  A    1 P "
    108        << startTime.toStdString() << " " << endTime.toStdString() << " " << _opt->_recNameRover << endl;
    109   _out << "-SITE/RECEIVER" << endl << endl;
    110 
     104  if (!_opt->_recNameRover.empty()) {
     105    _out << "+SITE/RECEIVER" << endl;
     106    _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__ FIRMWARE___" << endl;
     107    _out << " " << _opt->_roverName.substr(0,4) << "  A    1 P "
     108         << startTime.toStdString() << " " << endTime.toStdString() << " " << _opt->_recNameRover << endl;
     109    _out << "-SITE/RECEIVER" << endl << endl;
     110  }
    111111
    112112  _out << "+SITE/ANTENNA" << endl;
  • trunk/BNC/src/pppCrdFile.cpp

    r6050 r7523  
    3636 * Created:    29-Jul-2014
    3737 *
    38  * Changes:   
     38 * Changes:
    3939 *
    4040 * -----------------------------------------------------------------------*/
     
    4848using namespace BNC_PPP;
    4949
    50 // 
     50//
    5151//////////////////////////////////////////////////////////////////////////////
    5252void t_pppCrdFile::readCrdFile(const string& fileName, vector<t_staInfo>& staInfoVec) {
     
    6161      continue;
    6262    }
    63    
     63
    6464    istringstream in;
    6565
     
    8787
    8888    if (!in.eof()) {
    89       getline(in, staInfo._antenna);
    90       stripWhiteSpace(staInfo._antenna);
     89      std::string hlp;
     90      getline(in, hlp);
     91      stripWhiteSpace(hlp);
     92      staInfo._antenna = hlp.substr(0,20);
     93      hlp = hlp.erase(0, 20);
     94      if (hlp.length()) {
     95        stripWhiteSpace(hlp);
     96        staInfo._receiver = hlp;
     97      }
    9198    }
    9299
  • trunk/BNC/src/pppCrdFile.h

    r6050 r7523  
    1818    std::string  _name;
    1919    std::string  _antenna;
     20    std::string  _receiver;
    2021    ColumnVector _xyz;
    2122    ColumnVector _neuAnt;
  • trunk/BNC/src/pppMain.cpp

    r7502 r7523  
    367367          opt->_neuEccRover[2] = staInfo._neuAnt[2];
    368368          opt->_antNameRover   = staInfo._antenna;
     369          opt->_recNameRover   = staInfo._receiver;
    369370          break;
    370371        }
Note: See TracChangeset for help on using the changeset viewer.