Changeset 7764 in ntrip for trunk/BNC/src
- Timestamp:
- Feb 11, 2016, 11:24:45 AM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsinextro.cpp
r7523 r7764 84 84 } 85 85 86 87 QString numberOfEpochs = QString("%1").arg(1, 5, 10, QLatin1Char('0')); 88 _out << "%=TRO 2.00 BNC " << creationTime.toStdString() << " BNC " 89 << startTime.toStdString() << " " << endTime.toStdString() << " P " 86 QString numberOfEpochs = QString("%1").arg(intr * _sampl, 5, 10, QLatin1Char('0')); 87 QString ac = QString("%1").arg(settings.value("PPP/snxtroAc").toString(),3,QLatin1Char('0')); 88 QString sol = QString("%1").arg(settings.value("PPP/snxtroSol").toString(),4,QLatin1Char('0')); 89 QString corr = settings.value("PPP/corrMount").toString(); 90 _out << "%=TRO 2.00 " << ac.toStdString() << " " 91 << creationTime.toStdString() << " " << ac.toStdString() << " " 92 << startTime.toStdString() << " " << endTime.toStdString() << " P " 90 93 << numberOfEpochs.toStdString() << " 0 " << " T " << endl; 91 92 94 93 95 _out << "+FILE/REFERENCE" << endl; 94 96 _out << " DESCRIPTION " << "BNC generated SINEX TRO file" << endl; 95 97 _out << " OUTPUT " << "Total Troposphere Zenith Path Delay Product" << endl; 96 _out << " SOFTWARE " << BNCPGMNAME << endl; 97 _out << " INPUT " << "Orbit and Clock information used from BRDC and RTCM-SSR streams" << endl; 98 _out << " SOFTWARE " << BNCPGMNAME << endl; 99 _out << " INPUT " << "Additional Orbit and Clock information from Ntrip stream " 100 << corr.toStdString() <<endl; 98 101 _out << "-FILE/REFERENCE" << endl << endl; 99 102 100 103 double recEll[3]; 104 int lonD, lonM, latD, latM; 105 double lonS, latS; 106 xyz2ell(_opt->_xyzAprRover.data(), recEll); 107 recEll[0] = recEll[0] * 180.0 / M_PI; 108 recEll[1] = recEll[1] * 180.0 / M_PI; 109 deg2DMS(recEll[1], lonD, lonM, lonS); 110 deg2DMS(recEll[0], latD, latM, latS); 111 QString country; 112 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 113 while (it.hasNext()) { 114 QStringList hlp = it.next().split(" "); 115 if (hlp.size() < 7) 116 continue; 117 if (hlp.join(" ").indexOf(QString::fromStdString(_opt->_roverName), 0) != -1) { 118 country = hlp[2]; 119 } 120 } 101 121 _out << "+SITE/ID" << endl; 122 _out << "*CODE PT DOMES____ T _STATION DESCRIPTION___ APPROX_LON_ APPROX_LAT_ _APP_H_" << endl; 123 _out << " " << _opt->_roverName.substr(0,4) << " A P " 124 << country.toStdString() << " " 125 << QString(" %1").arg(lonD, 3, 10, QLatin1Char(' ')).toStdString() 126 << QString(" %1").arg(lonM, 2, 10, QLatin1Char(' ')).toStdString() 127 << QString(" %1").arg(lonS, 4, 'f', 1, QLatin1Char(' ')).toStdString() 128 << QString(" %1").arg(latD, 3, 10, QLatin1Char(' ')).toStdString() 129 << QString(" %1").arg(latM, 2, 10, QLatin1Char(' ')).toStdString() 130 << QString(" %1").arg(latS, 4, 'f', 1, QLatin1Char(' ')).toStdString() 131 << QString(" %1").arg(recEll[2], 7, 'f', 1, QLatin1Char(' ')).toStdString() 132 << endl; 102 133 _out << "-SITE/ID" << endl << endl; 103 134 … … 105 136 _out << "+SITE/RECEIVER" << endl; 106 137 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__ FIRMWARE___" << endl; 107 _out << " " << _opt->_roverName.substr(0,4) << " A 1P "138 _out << " " << _opt->_roverName.substr(0,4) << " A " << sol.toStdString() << " P " 108 139 << startTime.toStdString() << " " << endTime.toStdString() << " " << _opt->_recNameRover << endl; 109 140 _out << "-SITE/RECEIVER" << endl << endl; … … 112 143 _out << "+SITE/ANTENNA" << endl; 113 144 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__" << endl; 114 _out << " " << _opt->_roverName.substr(0,4) << " A 1P "145 _out << " " << _opt->_roverName.substr(0,4) << " A " << sol.toStdString() << " P " 115 146 << startTime.toStdString() << " " << endTime.toStdString() << " " << _opt->_antNameRover << endl; 116 147 _out << "-SITE/ANTENNA" << endl << endl; … … 166 197 _out << "* UP______ NORTH___ EAST____" << endl; 167 198 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ AXE ARP->BENCHMARK(M)_________" << endl; 168 _out << " " << _opt->_roverName.substr(0,4) << " A 1P "199 _out << " " << _opt->_roverName.substr(0,4) << " A " << sol.toStdString() << " P " 169 200 << startTime.toStdString() << " " << endTime.toStdString() << " " << " UNE" 170 201 << QString("%1").arg(_opt->_neuEccRover(3), 9, 'f', 4, QLatin1Char(' ')).toStdString() … … 173 204 _out << "-SITE/ANTENNA" << endl << endl; 174 205 175 176 206 _out << "+TROP/COORDINATES" << endl; 177 207 _out << "*SITE PT SOLN T __STA_X_____ __STA_Y_____ __STA_Z_____ SYSTEM REMRK" << endl; 178 _out << " " << _opt->_roverName.substr(0,4) << " A 1 P"208 _out << " " << _opt->_roverName.substr(0,4) << " A " << sol.toStdString() << " P " 179 209 << QString("%1").arg(_opt->_xyzAprRover(1), 13, 'f', 3, QLatin1Char(' ')).toStdString() 180 210 << QString("%1").arg(_opt->_xyzAprRover(2), 13, 'f', 3, QLatin1Char(' ')).toStdString() … … 182 212 << " ITRF08"<< endl; 183 213 _out << "-TROP/COORDINATES"<< endl << endl; 184 185 214 186 215 _out << "+TROP/DESCRIPTION" << endl; … … 196 225 _out << "-TROP/DESCRIPTION"<< endl << endl; 197 226 198 199 227 _out << "+TROP/SOLUTION" << endl; 200 228 _out << "*SITE EPOCH_______ TROTOT STDEV" << endl; -
trunk/BNC/src/bncwindow.cpp
r7702 r7764 867 867 _pppWidgets._logPath->setMaximumWidth(35*ww); 868 868 _pppWidgets._snxtroPath->setMaximumWidth(35*ww); 869 _pppWidgets._snxtroIntr->setMaximumWidth(15*ww); 869 _pppWidgets._snxtroIntr->setMaximumWidth(10*ww); 870 _pppWidgets._snxtroAc ->setMaximumWidth(10*ww); 871 _pppWidgets._snxtroSol ->setMaximumWidth(7*ww); 870 872 871 873 QGridLayout* pppLayout1 = new QGridLayout(); … … 902 904 pppLayout1->addWidget(new QLabel(" SNX TRO interval"), ir, 3); 903 905 pppLayout1->addWidget(_pppWidgets._snxtroIntr, ir, 4); 904 pppLayout1->addWidget(new QLabel(" SNX TRO sampling"), ir, 5 , Qt::AlignRight);906 pppLayout1->addWidget(new QLabel(" SNX TRO sampling"), ir, 5); 905 907 pppLayout1->addWidget(_pppWidgets._snxtroSampl, ir, 6, Qt::AlignRight); 906 908 ++ir; 909 pppLayout1->addWidget(new QLabel(" SNX TRO AC"), ir, 3); 910 pppLayout1->addWidget(_pppWidgets._snxtroAc, ir, 4); 911 pppLayout1->addWidget(new QLabel(" SNX TRO solution") ,ir, 5); 912 pppLayout1->addWidget(_pppWidgets._snxtroSol, ir, 6, Qt::AlignRight); 907 913 pppLayout1->setRowStretch(ir, 999); 908 914 … … 1334 1340 _pppWidgets._snxtroIntr->setWhatsThis(tr("<p>Select a length for SINEX Troposphere files.</p><p>Default 'SNX TRO interval' for saving SINEX Troposphere files on disk is '1 hour'.</p>")); 1335 1341 _pppWidgets._snxtroSampl->setWhatsThis(tr("<p>Select a 'Sampling' rate for saving troposphere parameters.</p><p>Default 'SNX TRO sampling' rate is '0', meaning that all troposphere estimates will be saved on disk.</p>")); 1342 _pppWidgets._snxtroAc->setWhatsThis(tr("<p>Specify an abbreviation for the Analysis Center (AC) providing the SINEX Troposphere files.</p>")); 1343 _pppWidgets._snxtroSol->setWhatsThis(tr("<p>Specify a solution ID to allow a distinction of different solutions per AC.</p>")); 1336 1344 1337 1345 // WhatsThis, PPP (3) -
trunk/BNC/src/pppWidgets.cpp
r7677 r7764 64 64 _snxtroSampl = new QSpinBox(); _snxtroSampl ->setObjectName("PPP/snxtroSampl"); _widgets << _snxtroSampl; 65 65 _snxtroIntr = new QComboBox(); _snxtroIntr ->setObjectName("PPP/snxtroIntr"); _widgets << _snxtroIntr; 66 _snxtroAc = new QLineEdit(); _snxtroAc ->setObjectName("PPP/snxtroAc"); _widgets << _snxtroAc; 67 _snxtroSol = new QLineEdit(); _snxtroSol ->setObjectName("PPP/snxtroSol"); _widgets << _snxtroSol; 66 68 _v3filenames = new QCheckBox(); _v3filenames ->setObjectName("PPP/v3filenames"); _widgets << _v3filenames; 67 69 _staTable = new QTableWidget(); _staTable ->setObjectName("PPP/staTable"); _widgets << _staTable; … … 103 105 this, SLOT(slotPPPTextChanged())); 104 106 107 connect(_snxtroAc, SIGNAL(textChanged(const QString &)), 108 this, SLOT(slotPPPTextChanged())); 109 110 connect(_snxtroSol, SIGNAL(textChanged(const QString &)), 111 this, SLOT(slotPPPTextChanged())); 112 105 113 slotEnableWidgets(); 106 114 … … 218 226 delete _snxtroSampl; 219 227 delete _snxtroIntr; 228 delete _snxtroAc; 229 delete _snxtroSol; 220 230 delete _v3filenames; 221 231 for (int iRow = _staTable->rowCount()-1; iRow >=0; iRow--) { … … 296 306 _nmeaPath ->setText(settings.value(_nmeaPath ->objectName()).toString()); 297 307 _snxtroPath ->setText(settings.value(_snxtroPath ->objectName()).toString()); 308 _snxtroAc ->setText(settings.value(_snxtroAc ->objectName()).toString()); 309 _snxtroSol ->setText(settings.value(_snxtroSol ->objectName()).toString()); 298 310 299 311 if (!settings.value(_sigmaC1->objectName()).toString().isEmpty()) { … … 396 408 settings.setValue(_snxtroPath ->objectName(), _snxtroPath ->text()); 397 409 settings.setValue(_snxtroSampl ->objectName(), _snxtroSampl ->value()); 410 settings.setValue(_snxtroIntr ->objectName(), _snxtroIntr ->currentText()); 411 settings.setValue(_snxtroAc ->objectName(), _snxtroAc ->text()); 412 settings.setValue(_snxtroSol ->objectName(), _snxtroSol ->text()); 398 413 settings.setValue(_v3filenames ->objectName(), _v3filenames ->checkState()); 399 settings.setValue(_snxtroIntr ->objectName(), _snxtroIntr ->currentText());400 414 settings.setValue(_lcGPS ->objectName(), _lcGPS ->currentText()); 401 415 settings.setValue(_lcGLONASS ->objectName(), _lcGLONASS ->currentText()); … … 467 481 _snxtroSampl->setEnabled(true); 468 482 _snxtroIntr ->setEnabled(true); 483 _snxtroAc ->setEnabled(true); 484 _snxtroSol ->setEnabled(true); 469 485 } 470 486 else { 471 487 _snxtroSampl->setEnabled(false); 472 488 _snxtroIntr ->setEnabled(false); 489 _snxtroAc ->setEnabled(false); 490 _snxtroSol ->setEnabled(false); 473 491 } 474 492 … … 538 556 if ( _snxtroPath->text() != "" ) { 539 557 _snxtroSampl->setEnabled(true); 540 _snxtroIntr->setEnabled(true); 558 _snxtroIntr ->setEnabled(true); 559 _snxtroAc ->setEnabled(true); 560 _snxtroSol ->setEnabled(true); 541 561 _snxtroSampl->setPalette(paletteWhite); 542 _snxtroIntr->setPalette(paletteWhite); 562 _snxtroIntr ->setPalette(paletteWhite); 563 _snxtroAc ->setPalette(paletteWhite); 564 _snxtroSol ->setPalette(paletteWhite); 543 565 } 544 566 else { 545 567 _snxtroSampl->setEnabled(false); 546 _snxtroIntr->setEnabled(false); 568 _snxtroIntr ->setEnabled(false); 569 _snxtroAc ->setEnabled(false); 570 _snxtroSol ->setEnabled(false); 547 571 _snxtroSampl->setPalette(paletteGray); 548 _snxtroIntr->setPalette(paletteGray); 549 } 550 } 551 } 572 _snxtroIntr ->setPalette(paletteGray); 573 _snxtroAc ->setPalette(paletteGray); 574 _snxtroSol ->setPalette(paletteGray); 575 } 576 } 577 } -
trunk/BNC/src/pppWidgets.h
r7640 r7764 50 50 QSpinBox* _snxtroSampl; 51 51 QComboBox* _snxtroIntr; 52 QLineEdit* _snxtroAc; 53 QLineEdit* _snxtroSol; 52 54 QCheckBox* _v3filenames; 53 55 QTableWidget* _staTable;
Note:
See TracChangeset
for help on using the changeset viewer.