Changeset 8127 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
May 10, 2017, 3:20:54 PM (7 years ago)
Author:
stoecker
Message:

update qwt and qwtpolar, many QT5 fixes (unfinished)

Location:
trunk/BNC/src
Files:
21 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_SSR_I/pppFilter.h

    r7929 r8127  
    9090  double       lkB;
    9191  unsigned     obsIndex;
    92   char system() const {return prn.toAscii()[0];}
     92  char system() const {return prn.toLatin1()[0];}
    9393};
    9494
  • trunk/BNC/src/bnccaster.cpp

    r8119 r8127  
    208208          emit( newMessage(QString("%1: Old epoch %2 thrown away")
    209209                 .arg(staID.data()).arg(string(obs._time).c_str())
    210                .toAscii(), true) );
     210               .toLatin1(), true) );
    211211        }
    212212      }
     
    232232  _sockets->push_back( _server->nextPendingConnection() );
    233233  emit( newMessage(QString("New client connection on sync port: # %1")
    234                    .arg(_sockets->size()).toAscii(), true) );
     234                   .arg(_sockets->size()).toLatin1(), true) );
    235235}
    236236
     
    238238  _uSockets->push_back( _uServer->nextPendingConnection() );
    239239  emit( newMessage(QString("New client connection on usync port: # %1")
    240                    .arg(_uSockets->size()).toAscii(), true) );
     240                   .arg(_uSockets->size()).toLatin1(), true) );
    241241}
    242242
     
    286286  _staIDs.removeAll(staID);
    287287  emit( newMessage(
    288            QString("Decoding %1 stream(s)").arg(_staIDs.size()).toAscii(), true) );
     288           QString("Decoding %1 stream(s)").arg(_staIDs.size()).toLatin1(), true) );
    289289  if (_staIDs.size() == 0) {
    290290    emit(newMessage("bncCaster: Last get thread terminated", true));
     
    406406    // ----------------
    407407    if (!existFlg) {
    408       QByteArray format    = hlp[1].toAscii();
    409       QByteArray latitude  = hlp[3].toAscii();
    410       QByteArray longitude = hlp[4].toAscii();
    411       QByteArray nmea      = hlp[5].toAscii();
    412       QByteArray ntripVersion = hlp[6].toAscii();
     408      QByteArray format    = hlp[1].toLatin1();
     409      QByteArray latitude  = hlp[3].toLatin1();
     410      QByteArray longitude = hlp[4].toLatin1();
     411      QByteArray nmea      = hlp[5].toLatin1();
     412      QByteArray ntripVersion = hlp[6].toLatin1();
    413413
    414414      bncGetThread* getThread = new bncGetThread(url, format, latitude,
     
    450450                           + BNC_CORE->confFileName()
    451451                           + ", %1 stream(s)")
    452                             .arg(_threads.count()).toAscii(), true) );
     452                            .arg(_threads.count()).toLatin1(), true) );
    453453
    454454  // (Re-) Start the configuration timer
     
    555555  _miscSockets->push_back( _miscServer->nextPendingConnection() );
    556556  emit( newMessage(QString("New client connection on Miscellaneous Output Port: # %1")
    557                    .arg(_miscSockets->size()).toAscii(), true) );
    558 }
     557                   .arg(_miscSockets->size()).toLatin1(), true) );
     558}
  • trunk/BNC/src/bnccore.cpp

    r7999 r8127  
    170170      expandEnvVar(logFileName);
    171171      _logFile = new QFile(logFileName + "_" +
    172                           currDate.toString("yyMMdd").toAscii().data());
     172                          currDate.toString("yyMMdd").toLatin1().data());
    173173      _fileDate = currDate;
    174174      if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
     
    189189      msgLocal = msg.mid(1);
    190190    }
    191     *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toAscii().data();
     191    *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toLatin1().data();
    192192    *_logStream << msgLocal.data() << endl;
    193193    _logStream->flush();
     
    202202  t_irc ircPut = _ephUser.putNewEph(eph, true);
    203203  if      (eph->checkState() == t_eph::bad) {
    204     messagePrivate("WRONG EPHEMERIS\n" + eph->toString(3.0).toAscii());
     204    messagePrivate("WRONG EPHEMERIS\n" + eph->toString(3.0).toLatin1());
    205205    return failure;
    206206  }
    207207  else if (eph->checkState() == t_eph::outdated) {
    208     messagePrivate("OUTDATED EPHEMERIS\n" + eph->toString(3.0).toAscii());
     208    messagePrivate("OUTDATED EPHEMERIS\n" + eph->toString(3.0).toLatin1());
    209209    return failure;
    210210  }
     
    270270    comments.append("Source: " + decoder +
    271271                    " " + url.encodedHost() +
    272                     "/" + url.path().mid(1).toAscii());
     272                    "/" + url.path().mid(1).toLatin1());
    273273  }
    274274
     
    388388        line.sprintf(
    389389          "%9.2f%11sN: GNSS NAV DATA    M: Mixed%12sRINEX VERSION / TYPE\n",
    390           t_rnxNavFile::defaultRnxNavVersion3, "", "");
     390          defaultRnxNavVersion3, "", "");
    391391        *_ephStreamGPS << line;
    392392
    393393        QString hlp = currentDateAndTimeGPS().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
    394         *_ephStreamGPS << _pgmName.toAscii().data()
    395                        << _userName.toAscii().data()
    396                        << hlp.toAscii().data()
     394        *_ephStreamGPS << _pgmName.toLatin1().data()
     395                       << _userName.toLatin1().data()
     396                       << hlp.toLatin1().data()
    397397                       << "PGM / RUN BY / DATE" << endl;
    398398
     
    415415        QString line;
    416416        line.sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n",
    417                      t_rnxNavFile::defaultRnxNavVersion2, "", "");
     417                     defaultRnxNavVersion2, "", "");
    418418        *_ephStreamGPS << line;
    419419
    420420        QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    421         *_ephStreamGPS << _pgmName.toAscii().data()
    422                        << _userName.toAscii().data()
    423                        << hlp.toAscii().data()
     421        *_ephStreamGPS << _pgmName.toLatin1().data()
     422                       << _userName.toLatin1().data()
     423                       << hlp.toLatin1().data()
    424424                       << "PGM / RUN BY / DATE" << endl;
    425425
     
    437437        QString line;
    438438        line.sprintf("%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n",
    439                      t_rnxNavFile::defaultRnxNavVersion2, "", "");
     439                     defaultRnxNavVersion2, "", "");
    440440        *_ephStreamGlonass << line;
    441441
    442442        QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    443         *_ephStreamGlonass << _pgmName.toAscii().data()
    444                            << _userName.toAscii().data()
    445                            << hlp.toAscii().data()
     443        *_ephStreamGlonass << _pgmName.toLatin1().data()
     444                           << _userName.toLatin1().data()
     445                           << hlp.toLatin1().data()
    446446                           << "PGM / RUN BY / DATE" << endl;
    447447
     
    464464void t_bncCore::printEph(const t_eph& eph, bool printFile) {
    465465
    466   QString strV2 = eph.toString(t_rnxNavFile::defaultRnxNavVersion2);
    467   QString strV3 = eph.toString(t_rnxObsHeader::defaultRnxObsVersion3);
     466  QString strV2 = eph.toString(defaultRnxNavVersion2);
     467  QString strV3 = eph.toString(defaultRnxObsVersion3);
    468468
    469469  if     (_rinexVers == 2 && eph.type() == t_eph::GLONASS) {
     
    487487  if (printFile && stream) {
    488488    if (_rinexVers == 2) {
    489       *stream << strV2.toAscii();
     489      *stream << strV2.toLatin1();
    490490    }
    491491    else {
    492       *stream << strV3.toAscii();
     492      *stream << strV3.toLatin1();
    493493    }
    494494    stream->flush();
     
    502502      QTcpSocket* sock = is.next();
    503503      if (sock->state() == QAbstractSocket::ConnectedState) {
    504         if (sock->write(strV3.toAscii()) == -1) {
     504        if (sock->write(strV3.toLatin1()) == -1) {
    505505          delete sock;
    506506          is.remove();
  • trunk/BNC/src/bncfigureppp.h

    r6730 r8127  
    4343
    4444 private:
    45   const static double _tRange = 300;
     45  enum {_tRange = 300};
    4646
    4747  class pppPos {
  • trunk/BNC/src/bncgetthread.cpp

    r8123 r8127  
    4343#include <sstream>
    4444
     45#include <QComboBox>
     46#include <QDialog>
    4547#include <QFile>
    4648#include <QTextStream>
    4749#include <QMutex>
    4850#include <QtNetwork>
     51#include <QPushButton>
     52#include <QTableWidget>
    4953#include <QTime>
    5054
     
    9094  _rawFile = 0;
    9195  _mountPoint = mountPoint;
    92   _staID = mountPoint.path().mid(1).toAscii();
     96  _staID = mountPoint.path().mid(1).toLatin1();
    9397  _format = format;
    9498  _latitude = latitude;
     
    134138      continue;
    135139    }
    136     QByteArray mp = hlp[0].toAscii();
     140    QByteArray mp = hlp[0].toLatin1();
    137141    if (_staID == mp) {
    138142      nmeaPort = hlp[9].toInt();
     
    275279        hlp = "0.0";
    276280      }
    277       QByteArray _serialHeightNMEA = hlp.toAscii();
     281      QByteArray _serialHeightNMEA = hlp.toLatin1();
    278282      _manualNMEAString = ggaString(_latitude, _longitude, _serialHeightNMEA,
    279283          nmeaMode);
     
    603607            QString prn(obs._prn.toString().c_str());
    604608            emit(newMessage(
    605                 _staID + " (" + prn.toAscii() + ")"
     609                _staID + " (" + prn.toLatin1() + ")"
    606610                    + ": Wrong observation epoch(s)", false));
    607611            continue;
     
    619623            long oldTime = it.value();
    620624            if (obsTime < oldTime) {
    621               emit(newMessage(_staID + ": old observation " + prn.toAscii(),
     625              emit(newMessage(_staID + ": old observation " + prn.toLatin1(),
    622626                  false));
    623627              continue;
     
    625629              emit(newMessage(
    626630                  _staID + ": observation coming more than once "
    627                       + prn.toAscii(), false));
     631                      + prn.toLatin1(), false));
    628632              continue;
    629633            }
     
    774778      for (int ii = 0; ii < decoder()->_typeList.size(); ii++) {
    775779        QString type = QString("%1 ").arg(decoder()->_typeList[ii]);
    776         emit(newMessage(_staID + ": Received message type " + type.toAscii(),
     780        emit(newMessage(_staID + ": Received message type " + type.toLatin1(),
    777781            true));
    778782      }
     
    847851            str << " " << rnxTypes[iType];
    848852          }
    849           emit(newMessage(_staID + ": Observation Types: " + msg.toAscii(),
     853          emit(newMessage(_staID + ": Observation Types: " + msg.toLatin1(),
    850854              true));
    851855        }
     
    856860      for (int ii = 0; ii < decoder()->_antType.size(); ii++) {
    857861        QString ant1 = QString("%1 ").arg(decoder()->_antType[ii]);
    858         emit(newMessage(_staID + ": Antenna descriptor " + ant1.toAscii(), true));
     862        emit(newMessage(_staID + ": Antenna descriptor " + ant1.toLatin1(), true));
    859863      }
    860864
     
    870874        QByteArray ant1, ant2, ant3;
    871875        ant1 =
    872             QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).toAscii();
     876            QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).toLatin1();
    873877        ant2 =
    874             QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).toAscii();
     878            QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).toLatin1();
    875879        ant3 =
    876             QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).toAscii();
     880            QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).toLatin1();
    877881        emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m", true));
    878882        emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m", true));
     
    881885        if (decoder()->_antList[ii].height_f) {
    882886          hh = decoder()->_antList[ii].height;
    883           QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).toAscii();
     887          QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).toLatin1();
    884888          emit(newMessage(
    885889              _staID + ": Antenna height above marker " + ant4 + "m", true));
     
    902906          _gloSlots.sort();
    903907          emit(newMessage(
    904               _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").toAscii(),
     908              _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").toLatin1(),
    905909              true));
    906910        }
     
    983987  _nmeaSockets->push_back(_nmeaServer->nextPendingConnection());
    984988  emit(newMessage(
    985       QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).toAscii(),
     989      QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).toLatin1(),
    986990      true));
    987991}
  • trunk/BNC/src/bncmap_svg.cpp

    r7667 r8127  
    247247    QwtPlotRenderer renderer;
    248248    renderer.setDiscardFlag(QwtPlotRenderer::DiscardBackground, false);
    249     renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true);
     249    //renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true);
    250250    renderer.renderTo(_mapPlot, printer);
    251251  }
  • trunk/BNC/src/bncrinex.cpp

    r7878 r8127  
    124124      QStringList tags = line.split(";");
    125125      if (tags.size() > 7) {
    126         if (tags.at(1) == _mountPoint.path().mid(1).toAscii()) {
     126        if (tags.at(1) == _mountPoint.path().mid(1).toLatin1()) {
    127127          net = tags.at(7);
    128128          break;
     
    368368  }
    369369
    370   _fName = path.toAscii();
     370  _fName = path.toLatin1();
    371371}
    372372
  • trunk/BNC/src/bnctabledlg.cpp

    r7680 r8127  
    4040
    4141#include <iostream>
     42#include <QHeaderView>
     43#include <QLabel>
     44#include <QLineEdit>
     45#include <QMessageBox>
     46#include <QVBoxLayout>
    4247
    4348#include "bnctabledlg.h"
     
    492497    if (url.host() == newHost) {
    493498      _casterUserLineEdit->setText(
    494                 QUrl::fromPercentEncoding(url.userName().toAscii()));
     499                QUrl::fromPercentEncoding(url.userName().toLatin1()));
    495500      _casterPasswordLineEdit->setText(
    496                 QUrl::fromPercentEncoding(url.password().toAscii()));
     501                QUrl::fromPercentEncoding(url.password().toLatin1()));
    497502      if (url.port() > 0) {
    498503        _casterPortLineEdit->setText(QString("%1").arg(url.port()));
  • trunk/BNC/src/bnctabledlg.h

    r4658 r8127  
    2828#include <QtCore>
    2929#include <QtGui>
     30#include <QComboBox>
     31#include <QDialog>
     32#include <QPushButton>
     33#include <QTableWidget>
    3034#include <QWhatsThis>
    3135
  • trunk/BNC/src/bncwindow.cpp

    r8119 r8127  
    4040
    4141#include <iostream>
     42
     43#include <QAction>
     44#include <QApplication>
     45#include <QCheckBox>
     46#include <QComboBox>
     47#include <QDialog>
     48#include <QFontDialog>
     49#include <QGridLayout>
     50#include <QHeaderView>
     51#include <QLabel>
     52#include <QLineEdit>
     53#include <QMenu>
     54#include <QMenuBar>
     55#include <QMessageBox>
     56#include <QPushButton>
     57#include <QRadioButton>
     58#include <QSpinBox>
     59#include <QTableWidgetItem>
     60#include <QTextEdit>
     61#include <QToolBar>
    4262
    4363#include <unistd.h>
     
    409429  _mountPointsTable->horizontalHeader()->resizeSection(6,5*ww);
    410430  _mountPointsTable->horizontalHeader()->resizeSection(7,5*ww);
     431#if QT_VERSION < 0x050000
    411432  _mountPointsTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     433#else
     434  _mountPointsTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     435#endif
    412436  _mountPointsTable->horizontalHeader()->setStretchLastSection(true);
    413437  _mountPointsTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
     
    439463  _cmbTable->horizontalHeader()->resizeSection(1,8*ww);
    440464  _cmbTable->horizontalHeader()->resizeSection(2,8*ww);
     465#if QT_VERSION < 0x050000
    441466  _cmbTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     467#else
     468  _cmbTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     469#endif
    442470  _cmbTable->horizontalHeader()->setStretchLastSection(true);
    443471  _cmbTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
     
    501529  _uploadTable->horizontalHeader()->resizeSection(10, 4*ww);
    502530  _uploadTable->horizontalHeader()->resizeSection(11,12*ww);
     531#if QT_VERSION < 0x050000
    503532  _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     533#else
     534  _uploadTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     535#endif
    504536  _uploadTable->horizontalHeader()->setStretchLastSection(true);
    505537  _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
     
    576608  _uploadEphTable->horizontalHeader()->resizeSection( 4,10*ww);
    577609  _uploadEphTable->horizontalHeader()->resizeSection( 5,12*ww);
     610#if QT_VERSION < 0x050000
    578611  _uploadEphTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive);
     612#else
     613  _uploadEphTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
     614#endif
    579615  _uploadEphTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
    580616
     
    20772113           this, SLOT(slotMountPointsRead(QList<bncGetThread*>)));
    20782114
    2079   BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION" ("BNC_OS") ==========", true);
     2115  BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " (" BNC_OS ") ==========", true);
    20802116
    20812117  bncSettings settings;
     
    23172353  img->setPixmap(QPixmap(":ntrip-logo.png"));
    23182354  dlgLayout->addWidget(img, 0,0);
    2319   dlgLayout->addWidget(new QLabel("BKG Ntrip Client (BNC) Version "BNCVERSION), 0,1);
     2355  dlgLayout->addWidget(new QLabel("BKG Ntrip Client (BNC) Version " BNCVERSION), 0,1);
    23202356  dlgLayout->addWidget(tb,1,0,1,2);
    23212357  dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight);
  • trunk/BNC/src/bncwindow.h

    r7889 r8127  
    2727
    2828#include <QtGui>
     29#include <QMainWindow>
    2930#include <QWhatsThis>
    3031
  • trunk/BNC/src/rinex/availplot.cpp

    r6542 r8127  
    7575
    7676  setCanvasBackground(QColor(Qt::white));
    77   canvas()->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
     77  ((QwtPlotCanvas *)canvas())->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
    7878
    7979  // Axes
     
    203203                                    const QVector<double>& yData) {
    204204  QwtPlotCurve* curve = new QwtPlotCurve(name);
    205   curve->setSymbol(new QwtSymbol(symbol));
     205  QwtSymbol *s = new QwtSymbol(symbol.style());
     206  s->setSize(symbol.size());
     207  s->setBrush(symbol.brush());
     208  s->setPen(symbol.pen());
     209  curve->setSymbol(s);
    206210  curve->setStyle(QwtPlotCurve::NoCurve);
    207211  curve->setXAxis(QwtPlot::xBottom);
  • trunk/BNC/src/rinex/dopplot.cpp

    r6537 r8127  
    6565
    6666  setCanvasBackground(QColor(Qt::white));
    67   canvas()->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
     67  ((QwtPlotCanvas *)canvas())->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
    6868
    6969  // Axes
  • trunk/BNC/src/rinex/eleplot.cpp

    r6537 r8127  
    6565
    6666  setCanvasBackground(QColor(Qt::white));
    67   canvas()->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
     67  ((QwtPlotCanvas *)canvas())->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
    6868
    6969  // Axes
     
    115115                                    const QVector<double>& yData) {
    116116  QwtPlotCurve* curve = new QwtPlotCurve(name);
    117   curve->setSymbol(new QwtSymbol(symbol));
     117  QwtSymbol *s = new QwtSymbol(symbol.style());
     118  s->setSize(symbol.size());
     119  s->setBrush(symbol.brush());
     120  s->setPen(symbol.pen());
     121  curve->setSymbol(s);
    118122  curve->setStyle(QwtPlotCurve::NoCurve);
    119123  curve->setXAxis(QwtPlot::xBottom);
  • trunk/BNC/src/rinex/graphwin.cpp

    r6262 r8127  
    8989   
    9090     QwtLinearScaleEngine scaleEngine;
    91      _colorScale->setScaleDiv(scaleEngine.transformation(),
    92                               scaleEngine.divideScale(scaleInterval->minValue(),
     91     _colorScale->setTransformation(scaleEngine.transformation());
     92     _colorScale->setScaleDiv(scaleEngine.divideScale(scaleInterval->minValue(),
    9393                                                      scaleInterval->maxValue(),
    9494                                                      8, 5));
  • trunk/BNC/src/rinex/polarplot.cpp

    r6262 r8127  
    3232  t_colorMap colorMap;
    3333  for (int ii = from; ii <= to; ii++) {
    34     QwtSymbol ss(symbol);
     34    QwtSymbol ss(symbol.style());
     35    ss.setSize(symbol.size());
    3536    const QwtPointPolar& point = sample(ii);
    3637    const QColor color = colorMap.color(_scaleInterval, point._value);
  • trunk/BNC/src/rinex/polarplot.h

    r4356 r8127  
    5151  virtual QwtPointPolar sample(size_t ii) const {
    5252    const t_polarPoint* point = _data->at(ii);
    53     QwtPointPolar qp(point->_az, point->_zen); qp._value = point->_value;
     53    QwtPointPolar qp(point->_az, point->_zen);  qp._value = point->_value;
    5454    return qp;
    5555  }
  • trunk/BNC/src/rinex/reqcedit.cpp

    r7999 r8127  
    6464  int version     = settings.value("reqcRnxVersion").toInt();
    6565  if (version < 3) {
    66     _rnxVersion = t_rnxObsHeader::defaultRnxObsVersion2;
     66    _rnxVersion = defaultRnxObsVersion2;
    6767  }
    6868  else {
    69     _rnxVersion = t_rnxObsHeader::defaultRnxObsVersion3;
     69    _rnxVersion = defaultRnxObsVersion3;
    7070  }
    7171  _samplingRate   = settings.value("reqcSampling").toInt();
     
    578578
    579579  if ( (haveGPS && haveGlonass) || _rnxVersion >= 3.0) {
    580     outNavFile.setVersion(t_rnxNavFile::defaultRnxNavVersion3);
     580    outNavFile.setVersion(defaultRnxNavVersion3);
    581581  }
    582582  else {
    583     outNavFile.setVersion(t_rnxNavFile::defaultRnxNavVersion2);
     583    outNavFile.setVersion(defaultRnxNavVersion2);
    584584  }
    585585
  • trunk/BNC/src/rinex/rnxnavfile.h

    r7999 r8127  
    3535class t_eph;
    3636
     37#define defaultRnxNavVersion2 2.11
     38#define defaultRnxNavVersion3 3.03
     39
    3740class t_rnxNavFile {
    3841
    3942 public:
    4043  enum e_inpOut {input, output};
    41   static const double defaultRnxNavVersion2 = 2.11;
    42   static const double defaultRnxNavVersion3 = 3.03;
    43 
    4444 private:
    4545  class t_rnxNavHeader {
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r8112 r8127  
    166166    else if (key == "# / TYPES OF OBSERV") {
    167167      if (_version == 0.0) {
    168         _version = t_rnxObsHeader::defaultRnxObsVersion2;
     168        _version = defaultRnxObsVersion2;
    169169      }
    170170      QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly);
     
    190190    else if (key == "SYS / # / OBS TYPES") {
    191191      if (_version == 0.0) {
    192         _version = t_rnxObsHeader::defaultRnxObsVersion3;
     192        _version = defaultRnxObsVersion3;
    193193      }
    194194      QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly);
     
    307307
    308308  if (version <= 2) {
    309     _version = t_rnxObsHeader::defaultRnxObsVersion2;
     309    _version = defaultRnxObsVersion2;
    310310  }
    311311  else {
    312     _version = t_rnxObsHeader::defaultRnxObsVersion3;
     312    _version = defaultRnxObsVersion3;
    313313  }
    314314
     
    371371
    372372  if (version <= 2) {
    373     _version = t_rnxObsHeader::defaultRnxObsVersion2;
     373    _version = defaultRnxObsVersion2;
    374374  }
    375375  else {
    376     _version = t_rnxObsHeader::defaultRnxObsVersion3;
     376    _version = defaultRnxObsVersion3;
    377377  }
    378378  _interval        = header._interval;
  • trunk/BNC/src/rinex/rnxobsfile.h

    r7980 r8127  
    3838#include "satObs.h"
    3939
     40#define defaultRnxObsVersion2 2.11
     41#define defaultRnxObsVersion3 3.03
     42
    4043class t_rnxObsHeader {
    4144
     
    4346
    4447 public:
    45   static const double  defaultRnxObsVersion2 = 2.11;
    46   static const double  defaultRnxObsVersion3 = 3.03;
    4748  static const QString defaultSystems;
    4849
Note: See TracChangeset for help on using the changeset viewer.