Changeset 8127 in ntrip for trunk/BNC/src
- Timestamp:
- May 10, 2017, 3:20:54 PM (8 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/PPP_SSR_I/pppFilter.h ¶
r7929 r8127 90 90 double lkB; 91 91 unsigned obsIndex; 92 char system() const {return prn.to Ascii()[0];}92 char system() const {return prn.toLatin1()[0];} 93 93 }; 94 94 -
TabularUnified trunk/BNC/src/bnccaster.cpp ¶
r8119 r8127 208 208 emit( newMessage(QString("%1: Old epoch %2 thrown away") 209 209 .arg(staID.data()).arg(string(obs._time).c_str()) 210 .to Ascii(), true) );210 .toLatin1(), true) ); 211 211 } 212 212 } … … 232 232 _sockets->push_back( _server->nextPendingConnection() ); 233 233 emit( newMessage(QString("New client connection on sync port: # %1") 234 .arg(_sockets->size()).to Ascii(), true) );234 .arg(_sockets->size()).toLatin1(), true) ); 235 235 } 236 236 … … 238 238 _uSockets->push_back( _uServer->nextPendingConnection() ); 239 239 emit( newMessage(QString("New client connection on usync port: # %1") 240 .arg(_uSockets->size()).to Ascii(), true) );240 .arg(_uSockets->size()).toLatin1(), true) ); 241 241 } 242 242 … … 286 286 _staIDs.removeAll(staID); 287 287 emit( newMessage( 288 QString("Decoding %1 stream(s)").arg(_staIDs.size()).to Ascii(), true) );288 QString("Decoding %1 stream(s)").arg(_staIDs.size()).toLatin1(), true) ); 289 289 if (_staIDs.size() == 0) { 290 290 emit(newMessage("bncCaster: Last get thread terminated", true)); … … 406 406 // ---------------- 407 407 if (!existFlg) { 408 QByteArray format = hlp[1].to Ascii();409 QByteArray latitude = hlp[3].to Ascii();410 QByteArray longitude = hlp[4].to Ascii();411 QByteArray nmea = hlp[5].to Ascii();412 QByteArray ntripVersion = hlp[6].to Ascii();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(); 413 413 414 414 bncGetThread* getThread = new bncGetThread(url, format, latitude, … … 450 450 + BNC_CORE->confFileName() 451 451 + ", %1 stream(s)") 452 .arg(_threads.count()).to Ascii(), true) );452 .arg(_threads.count()).toLatin1(), true) ); 453 453 454 454 // (Re-) Start the configuration timer … … 555 555 _miscSockets->push_back( _miscServer->nextPendingConnection() ); 556 556 emit( newMessage(QString("New client connection on Miscellaneous Output Port: # %1") 557 .arg(_miscSockets->size()).to Ascii(), true) );558 } 557 .arg(_miscSockets->size()).toLatin1(), true) ); 558 } -
TabularUnified trunk/BNC/src/bnccore.cpp ¶
r7999 r8127 170 170 expandEnvVar(logFileName); 171 171 _logFile = new QFile(logFileName + "_" + 172 currDate.toString("yyMMdd").to Ascii().data());172 currDate.toString("yyMMdd").toLatin1().data()); 173 173 _fileDate = currDate; 174 174 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) { … … 189 189 msgLocal = msg.mid(1); 190 190 } 191 *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").to Ascii().data();191 *_logStream << currentDateAndTimeGPS().toString("yy-MM-dd hh:mm:ss ").toLatin1().data(); 192 192 *_logStream << msgLocal.data() << endl; 193 193 _logStream->flush(); … … 202 202 t_irc ircPut = _ephUser.putNewEph(eph, true); 203 203 if (eph->checkState() == t_eph::bad) { 204 messagePrivate("WRONG EPHEMERIS\n" + eph->toString(3.0).to Ascii());204 messagePrivate("WRONG EPHEMERIS\n" + eph->toString(3.0).toLatin1()); 205 205 return failure; 206 206 } 207 207 else if (eph->checkState() == t_eph::outdated) { 208 messagePrivate("OUTDATED EPHEMERIS\n" + eph->toString(3.0).to Ascii());208 messagePrivate("OUTDATED EPHEMERIS\n" + eph->toString(3.0).toLatin1()); 209 209 return failure; 210 210 } … … 270 270 comments.append("Source: " + decoder + 271 271 " " + url.encodedHost() + 272 "/" + url.path().mid(1).to Ascii());272 "/" + url.path().mid(1).toLatin1()); 273 273 } 274 274 … … 388 388 line.sprintf( 389 389 "%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n", 390 t_rnxNavFile::defaultRnxNavVersion3, "", "");390 defaultRnxNavVersion3, "", ""); 391 391 *_ephStreamGPS << line; 392 392 393 393 QString hlp = currentDateAndTimeGPS().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true); 394 *_ephStreamGPS << _pgmName.to Ascii().data()395 << _userName.to Ascii().data()396 << hlp.to Ascii().data()394 *_ephStreamGPS << _pgmName.toLatin1().data() 395 << _userName.toLatin1().data() 396 << hlp.toLatin1().data() 397 397 << "PGM / RUN BY / DATE" << endl; 398 398 … … 415 415 QString line; 416 416 line.sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 417 t_rnxNavFile::defaultRnxNavVersion2, "", "");417 defaultRnxNavVersion2, "", ""); 418 418 *_ephStreamGPS << line; 419 419 420 420 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); 421 *_ephStreamGPS << _pgmName.to Ascii().data()422 << _userName.to Ascii().data()423 << hlp.to Ascii().data()421 *_ephStreamGPS << _pgmName.toLatin1().data() 422 << _userName.toLatin1().data() 423 << hlp.toLatin1().data() 424 424 << "PGM / RUN BY / DATE" << endl; 425 425 … … 437 437 QString line; 438 438 line.sprintf("%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n", 439 t_rnxNavFile::defaultRnxNavVersion2, "", "");439 defaultRnxNavVersion2, "", ""); 440 440 *_ephStreamGlonass << line; 441 441 442 442 QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true); 443 *_ephStreamGlonass << _pgmName.to Ascii().data()444 << _userName.to Ascii().data()445 << hlp.to Ascii().data()443 *_ephStreamGlonass << _pgmName.toLatin1().data() 444 << _userName.toLatin1().data() 445 << hlp.toLatin1().data() 446 446 << "PGM / RUN BY / DATE" << endl; 447 447 … … 464 464 void t_bncCore::printEph(const t_eph& eph, bool printFile) { 465 465 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); 468 468 469 469 if (_rinexVers == 2 && eph.type() == t_eph::GLONASS) { … … 487 487 if (printFile && stream) { 488 488 if (_rinexVers == 2) { 489 *stream << strV2.to Ascii();489 *stream << strV2.toLatin1(); 490 490 } 491 491 else { 492 *stream << strV3.to Ascii();492 *stream << strV3.toLatin1(); 493 493 } 494 494 stream->flush(); … … 502 502 QTcpSocket* sock = is.next(); 503 503 if (sock->state() == QAbstractSocket::ConnectedState) { 504 if (sock->write(strV3.to Ascii()) == -1) {504 if (sock->write(strV3.toLatin1()) == -1) { 505 505 delete sock; 506 506 is.remove(); -
TabularUnified trunk/BNC/src/bncfigureppp.h ¶
r6730 r8127 43 43 44 44 private: 45 const static double_tRange = 300;45 enum {_tRange = 300}; 46 46 47 47 class pppPos { -
TabularUnified trunk/BNC/src/bncgetthread.cpp ¶
r8123 r8127 43 43 #include <sstream> 44 44 45 #include <QComboBox> 46 #include <QDialog> 45 47 #include <QFile> 46 48 #include <QTextStream> 47 49 #include <QMutex> 48 50 #include <QtNetwork> 51 #include <QPushButton> 52 #include <QTableWidget> 49 53 #include <QTime> 50 54 … … 90 94 _rawFile = 0; 91 95 _mountPoint = mountPoint; 92 _staID = mountPoint.path().mid(1).to Ascii();96 _staID = mountPoint.path().mid(1).toLatin1(); 93 97 _format = format; 94 98 _latitude = latitude; … … 134 138 continue; 135 139 } 136 QByteArray mp = hlp[0].to Ascii();140 QByteArray mp = hlp[0].toLatin1(); 137 141 if (_staID == mp) { 138 142 nmeaPort = hlp[9].toInt(); … … 275 279 hlp = "0.0"; 276 280 } 277 QByteArray _serialHeightNMEA = hlp.to Ascii();281 QByteArray _serialHeightNMEA = hlp.toLatin1(); 278 282 _manualNMEAString = ggaString(_latitude, _longitude, _serialHeightNMEA, 279 283 nmeaMode); … … 603 607 QString prn(obs._prn.toString().c_str()); 604 608 emit(newMessage( 605 _staID + " (" + prn.to Ascii() + ")"609 _staID + " (" + prn.toLatin1() + ")" 606 610 + ": Wrong observation epoch(s)", false)); 607 611 continue; … … 619 623 long oldTime = it.value(); 620 624 if (obsTime < oldTime) { 621 emit(newMessage(_staID + ": old observation " + prn.to Ascii(),625 emit(newMessage(_staID + ": old observation " + prn.toLatin1(), 622 626 false)); 623 627 continue; … … 625 629 emit(newMessage( 626 630 _staID + ": observation coming more than once " 627 + prn.to Ascii(), false));631 + prn.toLatin1(), false)); 628 632 continue; 629 633 } … … 774 778 for (int ii = 0; ii < decoder()->_typeList.size(); ii++) { 775 779 QString type = QString("%1 ").arg(decoder()->_typeList[ii]); 776 emit(newMessage(_staID + ": Received message type " + type.to Ascii(),780 emit(newMessage(_staID + ": Received message type " + type.toLatin1(), 777 781 true)); 778 782 } … … 847 851 str << " " << rnxTypes[iType]; 848 852 } 849 emit(newMessage(_staID + ": Observation Types: " + msg.to Ascii(),853 emit(newMessage(_staID + ": Observation Types: " + msg.toLatin1(), 850 854 true)); 851 855 } … … 856 860 for (int ii = 0; ii < decoder()->_antType.size(); ii++) { 857 861 QString ant1 = QString("%1 ").arg(decoder()->_antType[ii]); 858 emit(newMessage(_staID + ": Antenna descriptor " + ant1.to Ascii(), true));862 emit(newMessage(_staID + ": Antenna descriptor " + ant1.toLatin1(), true)); 859 863 } 860 864 … … 870 874 QByteArray ant1, ant2, ant3; 871 875 ant1 = 872 QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).to Ascii();876 QString("%1 ").arg(decoder()->_antList[ii].xx, 0, 'f', 4).toLatin1(); 873 877 ant2 = 874 QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).to Ascii();878 QString("%1 ").arg(decoder()->_antList[ii].yy, 0, 'f', 4).toLatin1(); 875 879 ant3 = 876 QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).to Ascii();880 QString("%1 ").arg(decoder()->_antList[ii].zz, 0, 'f', 4).toLatin1(); 877 881 emit(newMessage(_staID + ": " + antT + " (ITRF) X " + ant1 + "m", true)); 878 882 emit(newMessage(_staID + ": " + antT + " (ITRF) Y " + ant2 + "m", true)); … … 881 885 if (decoder()->_antList[ii].height_f) { 882 886 hh = decoder()->_antList[ii].height; 883 QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).to Ascii();887 QByteArray ant4 = QString("%1 ").arg(hh, 0, 'f', 4).toLatin1(); 884 888 emit(newMessage( 885 889 _staID + ": Antenna height above marker " + ant4 + "m", true)); … … 902 906 _gloSlots.sort(); 903 907 emit(newMessage( 904 _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").to Ascii(),908 _staID + ": GLONASS Slot:Freq " + _gloSlots.join(" ").toLatin1(), 905 909 true)); 906 910 } … … 983 987 _nmeaSockets->push_back(_nmeaServer->nextPendingConnection()); 984 988 emit(newMessage( 985 QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).to Ascii(),989 QString("New PPP client on port: # %1").arg(_nmeaSockets->size()).toLatin1(), 986 990 true)); 987 991 } -
TabularUnified trunk/BNC/src/bncmap_svg.cpp ¶
r7667 r8127 247 247 QwtPlotRenderer renderer; 248 248 renderer.setDiscardFlag(QwtPlotRenderer::DiscardBackground, false); 249 renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true); 249 //renderer.setLayoutFlag(QwtPlotRenderer::KeepFrames, true); 250 250 renderer.renderTo(_mapPlot, printer); 251 251 } -
TabularUnified trunk/BNC/src/bncrinex.cpp ¶
r7878 r8127 124 124 QStringList tags = line.split(";"); 125 125 if (tags.size() > 7) { 126 if (tags.at(1) == _mountPoint.path().mid(1).to Ascii()) {126 if (tags.at(1) == _mountPoint.path().mid(1).toLatin1()) { 127 127 net = tags.at(7); 128 128 break; … … 368 368 } 369 369 370 _fName = path.to Ascii();370 _fName = path.toLatin1(); 371 371 } 372 372 -
TabularUnified trunk/BNC/src/bnctabledlg.cpp ¶
r7680 r8127 40 40 41 41 #include <iostream> 42 #include <QHeaderView> 43 #include <QLabel> 44 #include <QLineEdit> 45 #include <QMessageBox> 46 #include <QVBoxLayout> 42 47 43 48 #include "bnctabledlg.h" … … 492 497 if (url.host() == newHost) { 493 498 _casterUserLineEdit->setText( 494 QUrl::fromPercentEncoding(url.userName().to Ascii()));499 QUrl::fromPercentEncoding(url.userName().toLatin1())); 495 500 _casterPasswordLineEdit->setText( 496 QUrl::fromPercentEncoding(url.password().to Ascii()));501 QUrl::fromPercentEncoding(url.password().toLatin1())); 497 502 if (url.port() > 0) { 498 503 _casterPortLineEdit->setText(QString("%1").arg(url.port())); -
TabularUnified trunk/BNC/src/bnctabledlg.h ¶
r4658 r8127 28 28 #include <QtCore> 29 29 #include <QtGui> 30 #include <QComboBox> 31 #include <QDialog> 32 #include <QPushButton> 33 #include <QTableWidget> 30 34 #include <QWhatsThis> 31 35 -
TabularUnified trunk/BNC/src/bncwindow.cpp ¶
r8119 r8127 40 40 41 41 #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> 42 62 43 63 #include <unistd.h> … … 409 429 _mountPointsTable->horizontalHeader()->resizeSection(6,5*ww); 410 430 _mountPointsTable->horizontalHeader()->resizeSection(7,5*ww); 431 #if QT_VERSION < 0x050000 411 432 _mountPointsTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 433 #else 434 _mountPointsTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); 435 #endif 412 436 _mountPointsTable->horizontalHeader()->setStretchLastSection(true); 413 437 _mountPointsTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); … … 439 463 _cmbTable->horizontalHeader()->resizeSection(1,8*ww); 440 464 _cmbTable->horizontalHeader()->resizeSection(2,8*ww); 465 #if QT_VERSION < 0x050000 441 466 _cmbTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 467 #else 468 _cmbTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); 469 #endif 442 470 _cmbTable->horizontalHeader()->setStretchLastSection(true); 443 471 _cmbTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); … … 501 529 _uploadTable->horizontalHeader()->resizeSection(10, 4*ww); 502 530 _uploadTable->horizontalHeader()->resizeSection(11,12*ww); 531 #if QT_VERSION < 0x050000 503 532 _uploadTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 533 #else 534 _uploadTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); 535 #endif 504 536 _uploadTable->horizontalHeader()->setStretchLastSection(true); 505 537 _uploadTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); … … 576 608 _uploadEphTable->horizontalHeader()->resizeSection( 4,10*ww); 577 609 _uploadEphTable->horizontalHeader()->resizeSection( 5,12*ww); 610 #if QT_VERSION < 0x050000 578 611 _uploadEphTable->horizontalHeader()->setResizeMode(QHeaderView::Interactive); 612 #else 613 _uploadEphTable->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive); 614 #endif 579 615 _uploadEphTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft); 580 616 … … 2077 2113 this, SLOT(slotMountPointsRead(QList<bncGetThread*>))); 2078 2114 2079 BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " ("BNC_OS") ==========", true);2115 BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " (" BNC_OS ") ==========", true); 2080 2116 2081 2117 bncSettings settings; … … 2317 2353 img->setPixmap(QPixmap(":ntrip-logo.png")); 2318 2354 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); 2320 2356 dlgLayout->addWidget(tb,1,0,1,2); 2321 2357 dlgLayout->addWidget(_closeButton,2,1,Qt::AlignRight); -
TabularUnified trunk/BNC/src/bncwindow.h ¶
r7889 r8127 27 27 28 28 #include <QtGui> 29 #include <QMainWindow> 29 30 #include <QWhatsThis> 30 31 -
TabularUnified trunk/BNC/src/rinex/availplot.cpp ¶
r6542 r8127 75 75 76 76 setCanvasBackground(QColor(Qt::white)); 77 canvas()->setFrameStyle(QFrame::NoFrame | QFrame::Plain);77 ((QwtPlotCanvas *)canvas())->setFrameStyle(QFrame::NoFrame | QFrame::Plain); 78 78 79 79 // Axes … … 203 203 const QVector<double>& yData) { 204 204 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); 206 210 curve->setStyle(QwtPlotCurve::NoCurve); 207 211 curve->setXAxis(QwtPlot::xBottom); -
TabularUnified trunk/BNC/src/rinex/dopplot.cpp ¶
r6537 r8127 65 65 66 66 setCanvasBackground(QColor(Qt::white)); 67 canvas()->setFrameStyle(QFrame::NoFrame | QFrame::Plain);67 ((QwtPlotCanvas *)canvas())->setFrameStyle(QFrame::NoFrame | QFrame::Plain); 68 68 69 69 // Axes -
TabularUnified trunk/BNC/src/rinex/eleplot.cpp ¶
r6537 r8127 65 65 66 66 setCanvasBackground(QColor(Qt::white)); 67 canvas()->setFrameStyle(QFrame::NoFrame | QFrame::Plain);67 ((QwtPlotCanvas *)canvas())->setFrameStyle(QFrame::NoFrame | QFrame::Plain); 68 68 69 69 // Axes … … 115 115 const QVector<double>& yData) { 116 116 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); 118 122 curve->setStyle(QwtPlotCurve::NoCurve); 119 123 curve->setXAxis(QwtPlot::xBottom); -
TabularUnified trunk/BNC/src/rinex/graphwin.cpp ¶
r6262 r8127 89 89 90 90 QwtLinearScaleEngine scaleEngine; 91 _colorScale->set ScaleDiv(scaleEngine.transformation(),92 91 _colorScale->setTransformation(scaleEngine.transformation()); 92 _colorScale->setScaleDiv(scaleEngine.divideScale(scaleInterval->minValue(), 93 93 scaleInterval->maxValue(), 94 94 8, 5)); -
TabularUnified trunk/BNC/src/rinex/polarplot.cpp ¶
r6262 r8127 32 32 t_colorMap colorMap; 33 33 for (int ii = from; ii <= to; ii++) { 34 QwtSymbol ss(symbol); 34 QwtSymbol ss(symbol.style()); 35 ss.setSize(symbol.size()); 35 36 const QwtPointPolar& point = sample(ii); 36 37 const QColor color = colorMap.color(_scaleInterval, point._value); -
TabularUnified trunk/BNC/src/rinex/polarplot.h ¶
r4356 r8127 51 51 virtual QwtPointPolar sample(size_t ii) const { 52 52 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; 54 54 return qp; 55 55 } -
TabularUnified trunk/BNC/src/rinex/reqcedit.cpp ¶
r7999 r8127 64 64 int version = settings.value("reqcRnxVersion").toInt(); 65 65 if (version < 3) { 66 _rnxVersion = t_rnxObsHeader::defaultRnxObsVersion2;66 _rnxVersion = defaultRnxObsVersion2; 67 67 } 68 68 else { 69 _rnxVersion = t_rnxObsHeader::defaultRnxObsVersion3;69 _rnxVersion = defaultRnxObsVersion3; 70 70 } 71 71 _samplingRate = settings.value("reqcSampling").toInt(); … … 578 578 579 579 if ( (haveGPS && haveGlonass) || _rnxVersion >= 3.0) { 580 outNavFile.setVersion( t_rnxNavFile::defaultRnxNavVersion3);580 outNavFile.setVersion(defaultRnxNavVersion3); 581 581 } 582 582 else { 583 outNavFile.setVersion( t_rnxNavFile::defaultRnxNavVersion2);583 outNavFile.setVersion(defaultRnxNavVersion2); 584 584 } 585 585 -
TabularUnified trunk/BNC/src/rinex/rnxnavfile.h ¶
r7999 r8127 35 35 class t_eph; 36 36 37 #define defaultRnxNavVersion2 2.11 38 #define defaultRnxNavVersion3 3.03 39 37 40 class t_rnxNavFile { 38 41 39 42 public: 40 43 enum e_inpOut {input, output}; 41 static const double defaultRnxNavVersion2 = 2.11;42 static const double defaultRnxNavVersion3 = 3.03;43 44 44 private: 45 45 class t_rnxNavHeader { -
TabularUnified trunk/BNC/src/rinex/rnxobsfile.cpp ¶
r8112 r8127 166 166 else if (key == "# / TYPES OF OBSERV") { 167 167 if (_version == 0.0) { 168 _version = t_rnxObsHeader::defaultRnxObsVersion2;168 _version = defaultRnxObsVersion2; 169 169 } 170 170 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); … … 190 190 else if (key == "SYS / # / OBS TYPES") { 191 191 if (_version == 0.0) { 192 _version = t_rnxObsHeader::defaultRnxObsVersion3;192 _version = defaultRnxObsVersion3; 193 193 } 194 194 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); … … 307 307 308 308 if (version <= 2) { 309 _version = t_rnxObsHeader::defaultRnxObsVersion2;309 _version = defaultRnxObsVersion2; 310 310 } 311 311 else { 312 _version = t_rnxObsHeader::defaultRnxObsVersion3;312 _version = defaultRnxObsVersion3; 313 313 } 314 314 … … 371 371 372 372 if (version <= 2) { 373 _version = t_rnxObsHeader::defaultRnxObsVersion2;373 _version = defaultRnxObsVersion2; 374 374 } 375 375 else { 376 _version = t_rnxObsHeader::defaultRnxObsVersion3;376 _version = defaultRnxObsVersion3; 377 377 } 378 378 _interval = header._interval; -
TabularUnified trunk/BNC/src/rinex/rnxobsfile.h ¶
r7980 r8127 38 38 #include "satObs.h" 39 39 40 #define defaultRnxObsVersion2 2.11 41 #define defaultRnxObsVersion3 3.03 42 40 43 class t_rnxObsHeader { 41 44 … … 43 46 44 47 public: 45 static const double defaultRnxObsVersion2 = 2.11;46 static const double defaultRnxObsVersion3 = 3.03;47 48 static const QString defaultSystems; 48 49
Note:
See TracChangeset
for help on using the changeset viewer.