- Timestamp:
- Nov 28, 2009, 3:37:03 PM (15 years ago)
- Location:
- trunk/BNS
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r2045 r2046 404 404 405 405 QString prn; 406 ColumnVector xx( 6); xx = 0.0;406 ColumnVector xx(8); xx = 0.0; 407 407 t_eph* ep = 0; 408 408 … … 412 412 prns << prn; 413 413 if ( _ephList.contains(prn) ) { 414 in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5) >> xx(6); 415 xx(1) *= 1e3; 416 xx(2) *= 1e3; 417 xx(3) *= 1e3; 418 xx(4) *= 1e-6; 419 xx(5) *= 1e-6; 414 in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5) 415 >> xx(6) >> xx(7) >> xx(8); 416 xx(1) *= 1e3; // x-crd 417 xx(2) *= 1e3; // y-crd 418 xx(3) *= 1e3; // z-crd 419 xx(4) *= 1e-6; // clk 420 xx(5) *= 1e-6; // rel. corr. 421 // xx(6), xx(7), xx(8) ... PhaseCent - CoM 420 422 421 423 t_ephPair* pair = _ephList[prn]; … … 452 454 QString outLine; 453 455 processSatellite(oldEph, ic, _caster.at(ic)->crdTrafo(), 454 _caster.at(ic)-> beClocks(), ep,456 _caster.at(ic)->CoM(), ep, 455 457 GPSweek, GPSweeks, prn, xx, sd, outLine); 456 458 _caster.at(ic)->printAscii(outLine); … … 478 480 //////////////////////////////////////////////////////////////////////////// 479 481 void t_bns::processSatellite(int oldEph, int iCaster, const QString trafo, 480 bool beClocks, t_eph* ep, int GPSweek,482 bool CoM, t_eph* ep, int GPSweek, 481 483 double GPSweeks, const QString& prn, 482 484 const ColumnVector& xx, … … 490 492 491 493 ColumnVector xyz = xx.Rows(1,3); 494 495 // Correction Center of Mass -> Antenna Phase Center 496 // ------------------------------------------------- 497 if (! CoM) { 498 xyz(1) += xx(6); 499 xyz(2) += xx(7); 500 xyz(3) += xx(8); 501 } 502 492 503 if (trafo != "IGS05") { 493 504 crdTrafo(GPSweek, xyz, trafo); … … 499 510 XYZ_to_RSW(xB.Rows(1,3), vv, dx, rsw); 500 511 501 double dClk; 502 if (beClocks) { 503 dClk = (xx(4) - xB(4) - xx(5)) * 299792458.0; 504 } 505 else { 506 dClk = (xx(4) - xB(4)) * 299792458.0; 507 } 508 509 double antCorr = xx(6); 512 double dClk = (xx(4) - xB(4)) * 299792458.0; 513 510 514 511 515 if (sd) { … … 519 523 520 524 char oldCh = (oldEph ? '!' : ' '); 521 outLine.sprintf("%c %d %.1f %s %3d %10.3f %8.3f %8.3f %8.3f %8.3f\n",525 outLine.sprintf("%c %d %.1f %s %3d %10.3f %8.3f %8.3f %8.3f\n", 522 526 oldCh, GPSweek, GPSweeks, ep->prn().toAscii().data(), 523 ep->IOD(), dClk, rsw(1), rsw(2), rsw(3) , antCorr);527 ep->IOD(), dClk, rsw(1), rsw(2), rsw(3)); 524 528 525 529 if (!oldEph && iCaster == 0) { -
trunk/BNS/bns.h
r1803 r2046 62 62 void openCaster(); 63 63 void readEpoch(); 64 void processSatellite(int oldEph, int iCaster, const QString trafo, bool beClocks,64 void processSatellite(int oldEph, int iCaster, const QString trafo, bool CoM, 65 65 t_eph* ep, int GPSweek, double GPSweeks, 66 66 const QString& prn, const ColumnVector& xx, -
trunk/BNS/bnscaster.cpp
r1945 r2046 57 57 _crdTrafo = settings.value(QString("refSys_%1").arg(_ic)).toString(); 58 58 59 if ( Qt::CheckState(settings.value(QString(" beClocks%1").arg(_ic)).toInt())59 if ( Qt::CheckState(settings.value(QString("CoM_%1").arg(_ic)).toInt()) 60 60 == Qt::Checked ) { 61 _ beClocks= true;61 _CoM = true; 62 62 } 63 63 else { 64 _ beClocks= false;64 _CoM = false; 65 65 } 66 66 } … … 79 79 _outStream = 0; 80 80 _crdTrafo = ""; 81 _ beClocks= false;81 _CoM = false; 82 82 } 83 83 -
trunk/BNS/bnscaster.h
r1797 r2046 15 15 bool usedSocket() const {return _outSocket;} 16 16 QString crdTrafo() const {return _crdTrafo;} 17 bool beClocks() const {return _beClocks;}17 bool CoM() const {return _CoM;} 18 18 int ic() const {return _ic;} 19 19 … … 30 30 QTextStream* _outStream; 31 31 QString _crdTrafo; 32 bool _ beClocks;32 bool _CoM; 33 33 int _ic; 34 34 }; -
trunk/BNS/bnshelp.html
r1899 r2046 669 669 <tr><td>refSys_1=IGS05</td><td>Broadcast Corrections I: System</td></tr> 670 670 <tr><td>outFile_1=/home/weber/rinex/CLCK1</td><td>Broadcast Corrections I: Save (full path)</td></tr> 671 <tr><td>beClocks1=0</td><td>Broadcast Corrections I: Broadcast clocks</td></tr>672 671 <tr><td>outHost2=www.igs-.net</td><td>Broadcast Corrections II: Host</td></tr> 673 672 <tr><td>outPort2=2101</td><td>Broadcast Corrections II: Port</td></tr> … … 676 675 <tr><td>refSys_2=ETRF2000</td><td>Broadcast Corrections II: System</td></tr> 677 676 <tr><td>outFile_2=/home/weber/rinex/CLCK2</td><td>Broadcast Corrections II: Save (full path)</td></tr> 678 <tr><td>beClocks2=0</td><td>Broadcast Corrections II: Broadcast clocks</td></tr>679 677 <tr><td>outHost3=www.igs-.net</td><td>Broadcast Corrections III: Host</td></tr> 680 678 <tr><td>outPort3=2101</td><td>Broadcast Corrections III: Port</td></tr> … … 683 681 <tr><td>refSys_3=ETRF2000</td><td>Broadcast Corrections III: System</td></tr> 684 682 <tr><td>outFile_3=/home/weber/rinex/CLCK3</td><td>Broadcast Corrections III: Save (full path)</td></tr> 685 <tr><td>beClocks3=0</td><td>Broadcast Corrections III: Broadcast clocks</td></tr>686 683 <tr><td>outHostEph=www.igs-ip.net</td><td>Broadcast Ephemeris: Host</td></tr> 687 684 <tr><td>outPortEph=2101</td><td>Broadcast Ephemeris: Port</td></tr> -
trunk/BNS/bnswindow.cpp
r1806 r2046 185 185 } 186 186 _outFile_1_LineEdit = new QLineEdit(settings.value("outFile_1").toString()); 187 _ beClocks1CheckBox = new QCheckBox();188 _ beClocks1CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks1").toInt()));187 _CoM_1_CheckBox = new QCheckBox(); 188 _CoM_1_CheckBox->setCheckState(Qt::CheckState(settings.value("CoM_1").toInt())); 189 189 190 190 // Broadcast Corrections II Options … … 203 203 } 204 204 _outFile_2_LineEdit = new QLineEdit(settings.value("outFile_2").toString()); 205 _ beClocks2CheckBox = new QCheckBox();206 _ beClocks2CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks2").toInt()));205 _CoM_2_CheckBox = new QCheckBox(); 206 _CoM_2_CheckBox->setCheckState(Qt::CheckState(settings.value("CoM_2").toInt())); 207 207 208 208 // Broadcast Corrections III Options … … 221 221 } 222 222 _outFile_3_LineEdit = new QLineEdit(settings.value("outFile_3").toString()); 223 _ beClocks3CheckBox = new QCheckBox();224 _ beClocks3CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks3").toInt()));223 _CoM_3_CheckBox = new QCheckBox(); 224 _CoM_3_CheckBox->setCheckState(Qt::CheckState(settings.value("CoM_3").toInt())); 225 225 226 226 // Broadcast Ephemerides … … 316 316 _sp3SamplSpinBox->setWhatsThis(tr("Select the SP3 orbit file sampling interval in seconds. A value of zero '0' tells BNS to store all available samples into SP3 orbit files.")); 317 317 _autoStartCheckBox->setWhatsThis(tr("<p>Tick 'Auto start' for auto-start of BNS at startup time in window mode with preassigned processing options.</p>")); 318 _beClocks1CheckBox->setWhatsThis(tr("<p>Ignore incoming clock estimates and send broadcast clocks instead of broadcast clock corrections.</p><p>Note that for compatibility with IGS post processing products these clocks will not be corrected for the 2nd order relativistic effect.</p>"));319 _beClocks2CheckBox->setWhatsThis(tr("<p>Ignore incoming clock estimates and send broadcast clocks instead of broadcast clock corrections.</p><p>Note that for compatibility with IGS post processing products these clocks will not be corrected for the 2nd order relativistic effect.</p>"));320 321 318 322 319 // TabWidget … … 454 451 layout_cas1->addWidget(_outFile_1_LineEdit, 2, 3, 1, 30); 455 452 layout_cas1->addWidget(new QLabel("Broadcast clocks"), 3, 0); 456 layout_cas1->addWidget(_ beClocks1CheckBox,3, 1);453 layout_cas1->addWidget(_CoM_1_CheckBox, 3, 1); 457 454 layout_cas1->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 4, 0, 1, 50); 458 455 … … 468 465 _outFile_1_LineEdit->setStyleSheet("background-color: lightGray"); 469 466 _refSys_1_ComboBox->setStyleSheet("background-color: lightGray"); 470 palette.setColor(_ beClocks1CheckBox->backgroundRole(), lightGray);471 _ beClocks1CheckBox->setPalette(palette);467 palette.setColor(_CoM_1_CheckBox->backgroundRole(), lightGray); 468 _CoM_1_CheckBox->setPalette(palette); 472 469 _outPort_1_LineEdit->setEnabled(false); 473 470 _mountpoint_1_LineEdit->setEnabled(false); … … 475 472 _outFile_1_LineEdit->setEnabled(false); 476 473 _refSys_1_ComboBox->setEnabled(false); 477 _ beClocks1CheckBox->setEnabled(false);474 _CoM_1_CheckBox->setEnabled(false); 478 475 } 479 476 … … 506 503 layout_cas2->addWidget(_outFile_2_LineEdit, 2, 3, 1, 30); 507 504 layout_cas2->addWidget(new QLabel("Broadcast clocks"), 3, 0); 508 layout_cas2->addWidget(_ beClocks2CheckBox,3, 1);505 layout_cas2->addWidget(_CoM_2_CheckBox, 3, 1); 509 506 layout_cas2->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 4, 0, 1, 50); 510 507 … … 520 517 _outFile_2_LineEdit->setStyleSheet("background-color: lightGray"); 521 518 _refSys_2_ComboBox->setStyleSheet("background-color: lightGray"); 522 palette.setColor(_ beClocks2CheckBox->backgroundRole(), lightGray);523 _ beClocks2CheckBox->setPalette(palette);519 palette.setColor(_CoM_2_CheckBox->backgroundRole(), lightGray); 520 _CoM_2_CheckBox->setPalette(palette); 524 521 _outPort_2_LineEdit->setEnabled(false); 525 522 _mountpoint_2_LineEdit->setEnabled(false); … … 527 524 _outFile_2_LineEdit->setEnabled(false); 528 525 _refSys_2_ComboBox->setEnabled(false); 529 _ beClocks2CheckBox->setEnabled(false);526 _CoM_2_CheckBox->setEnabled(false); 530 527 } 531 528 … … 558 555 layout_cas3->addWidget(_outFile_3_LineEdit, 2, 3, 1, 30); 559 556 layout_cas3->addWidget(new QLabel("Broadcast clocks"), 3, 0); 560 layout_cas3->addWidget(_ beClocks3CheckBox,3, 1);557 layout_cas3->addWidget(_CoM_3_CheckBox, 3, 1); 561 558 layout_cas3->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 4, 0, 1, 50); 562 559 … … 572 569 _outFile_3_LineEdit->setStyleSheet("background-color: lightGray"); 573 570 _refSys_3_ComboBox->setStyleSheet("background-color: lightGray"); 574 palette.setColor(_ beClocks3CheckBox->backgroundRole(), lightGray);575 _ beClocks3CheckBox->setPalette(palette);571 palette.setColor(_CoM_3_CheckBox->backgroundRole(), lightGray); 572 _CoM_3_CheckBox->setPalette(palette); 576 573 _outPort_3_LineEdit->setEnabled(false); 577 574 _mountpoint_3_LineEdit->setEnabled(false); … … 579 576 _outFile_3_LineEdit->setEnabled(false); 580 577 _refSys_3_ComboBox->setEnabled(false); 581 _ beClocks3CheckBox->setEnabled(false);578 _CoM_3_CheckBox->setEnabled(false); 582 579 } 583 580 … … 866 863 settings.setValue("refSys_1", _refSys_1_ComboBox->currentText()); 867 864 settings.setValue("outFile_1", _outFile_1_LineEdit->text()); 868 settings.setValue(" beClocks1", _beClocks1CheckBox->checkState());865 settings.setValue("CoM_1", _CoM_1_CheckBox->checkState()); 869 866 870 867 settings.setValue("outHost2", _outHost_2_LineEdit->text()); … … 874 871 settings.setValue("refSys_2", _refSys_2_ComboBox->currentText()); 875 872 settings.setValue("outFile_2", _outFile_2_LineEdit->text()); 876 settings.setValue(" beClocks2", _beClocks2CheckBox->checkState());873 settings.setValue("CoM_2", _CoM_2_CheckBox->checkState()); 877 874 878 875 settings.setValue("outHost3", _outHost_3_LineEdit->text()); … … 882 879 settings.setValue("refSys_3", _refSys_3_ComboBox->currentText()); 883 880 settings.setValue("outFile_3", _outFile_3_LineEdit->text()); 884 settings.setValue(" beClocks3", _beClocks2CheckBox->checkState());881 settings.setValue("CoM_3", _CoM_3_CheckBox->checkState()); 885 882 886 883 settings.setValue("outHostEph", _outHost_Eph_LineEdit->text()); … … 1064 1061 _outFile_1_LineEdit->setStyleSheet("background-color: white"); 1065 1062 _refSys_1_ComboBox->setStyleSheet("background-color: white"); 1066 palette.setColor(_ beClocks1CheckBox->backgroundRole(), white);1067 _ beClocks1CheckBox->setPalette(palette);1063 palette.setColor(_CoM_1_CheckBox->backgroundRole(), white); 1064 _CoM_1_CheckBox->setPalette(palette); 1068 1065 _outPort_1_LineEdit->setEnabled(true); 1069 1066 _mountpoint_1_LineEdit->setEnabled(true); … … 1071 1068 _outFile_1_LineEdit->setEnabled(true); 1072 1069 _refSys_1_ComboBox->setEnabled(true); 1073 _ beClocks1CheckBox->setEnabled(true);1070 _CoM_1_CheckBox->setEnabled(true); 1074 1071 } else { 1075 1072 _outPort_1_LineEdit->setStyleSheet("background-color: lightGray"); … … 1078 1075 _outFile_1_LineEdit->setStyleSheet("background-color: lightGray"); 1079 1076 _refSys_1_ComboBox->setStyleSheet("background-color: lightGray"); 1080 palette.setColor(_ beClocks1CheckBox->backgroundRole(), lightGray);1081 _ beClocks1CheckBox->setPalette(palette);1077 palette.setColor(_CoM_1_CheckBox->backgroundRole(), lightGray); 1078 _CoM_1_CheckBox->setPalette(palette); 1082 1079 _outPort_1_LineEdit->setEnabled(false); 1083 1080 _mountpoint_1_LineEdit->setEnabled(false); … … 1085 1082 _outFile_1_LineEdit->setEnabled(false); 1086 1083 _refSys_1_ComboBox->setEnabled(false); 1087 _ beClocks1CheckBox->setEnabled(false);1084 _CoM_1_CheckBox->setEnabled(false); 1088 1085 } 1089 1086 } … … 1098 1095 _outFile_2_LineEdit->setStyleSheet("background-color: white"); 1099 1096 _refSys_2_ComboBox->setStyleSheet("background-color: white"); 1100 palette.setColor(_ beClocks2CheckBox->backgroundRole(), white);1101 _ beClocks2CheckBox->setPalette(palette);1097 palette.setColor(_CoM_2_CheckBox->backgroundRole(), white); 1098 _CoM_2_CheckBox->setPalette(palette); 1102 1099 _outPort_2_LineEdit->setEnabled(true); 1103 1100 _mountpoint_2_LineEdit->setEnabled(true); … … 1105 1102 _outFile_2_LineEdit->setEnabled(true); 1106 1103 _refSys_2_ComboBox->setEnabled(true); 1107 _ beClocks2CheckBox->setEnabled(true);1104 _CoM_2_CheckBox->setEnabled(true); 1108 1105 } else { 1109 1106 _outPort_2_LineEdit->setStyleSheet("background-color: lightGray"); … … 1112 1109 _outFile_2_LineEdit->setStyleSheet("background-color: lightGray"); 1113 1110 _refSys_2_ComboBox->setStyleSheet("background-color: lightGray"); 1114 palette.setColor(_ beClocks2CheckBox->backgroundRole(), lightGray);1115 _ beClocks2CheckBox->setPalette(palette);1111 palette.setColor(_CoM_2_CheckBox->backgroundRole(), lightGray); 1112 _CoM_2_CheckBox->setPalette(palette); 1116 1113 _outPort_2_LineEdit->setEnabled(false); 1117 1114 _mountpoint_2_LineEdit->setEnabled(false); … … 1119 1116 _outFile_2_LineEdit->setEnabled(false); 1120 1117 _refSys_2_ComboBox->setEnabled(false); 1121 _ beClocks2CheckBox->setEnabled(false);1118 _CoM_2_CheckBox->setEnabled(false); 1122 1119 } 1123 1120 } … … 1132 1129 _outFile_3_LineEdit->setStyleSheet("background-color: white"); 1133 1130 _refSys_3_ComboBox->setStyleSheet("background-color: white"); 1134 palette.setColor(_ beClocks3CheckBox->backgroundRole(), white);1135 _ beClocks3CheckBox->setPalette(palette);1131 palette.setColor(_CoM_3_CheckBox->backgroundRole(), white); 1132 _CoM_3_CheckBox->setPalette(palette); 1136 1133 _outPort_3_LineEdit->setEnabled(true); 1137 1134 _mountpoint_3_LineEdit->setEnabled(true); … … 1139 1136 _outFile_3_LineEdit->setEnabled(true); 1140 1137 _refSys_3_ComboBox->setEnabled(true); 1141 _ beClocks3CheckBox->setEnabled(true);1138 _CoM_3_CheckBox->setEnabled(true); 1142 1139 } else { 1143 1140 _outPort_3_LineEdit->setStyleSheet("background-color: lightGray"); … … 1146 1143 _outFile_3_LineEdit->setStyleSheet("background-color: lightGray"); 1147 1144 _refSys_3_ComboBox->setStyleSheet("background-color: lightGray"); 1148 palette.setColor(_ beClocks3CheckBox->backgroundRole(), lightGray);1149 _ beClocks3CheckBox->setPalette(palette);1145 palette.setColor(_CoM_3_CheckBox->backgroundRole(), lightGray); 1146 _CoM_3_CheckBox->setPalette(palette); 1150 1147 _outPort_3_LineEdit->setEnabled(false); 1151 1148 _mountpoint_3_LineEdit->setEnabled(false); … … 1153 1150 _outFile_3_LineEdit->setEnabled(false); 1154 1151 _refSys_3_ComboBox->setEnabled(false); 1155 _ beClocks3CheckBox->setEnabled(false);1152 _CoM_3_CheckBox->setEnabled(false); 1156 1153 } 1157 1154 } -
trunk/BNS/bnswindow.h
r1805 r2046 96 96 QComboBox* _refSys_1_ComboBox; 97 97 QLineEdit* _outFile_1_LineEdit; 98 QCheckBox* _ beClocks1CheckBox;98 QCheckBox* _CoM_1_CheckBox; 99 99 100 100 QLineEdit* _outHost_2_LineEdit; … … 104 104 QComboBox* _refSys_2_ComboBox; 105 105 QLineEdit* _outFile_2_LineEdit; 106 QCheckBox* _ beClocks2CheckBox;106 QCheckBox* _CoM_2_CheckBox; 107 107 108 108 QLineEdit* _outHost_3_LineEdit; … … 112 112 QComboBox* _refSys_3_ComboBox; 113 113 QLineEdit* _outFile_3_LineEdit; 114 QCheckBox* _ beClocks3CheckBox;114 QCheckBox* _CoM_3_CheckBox; 115 115 116 116 QLineEdit* _outHost_Eph_LineEdit;
Note:
See TracChangeset
for help on using the changeset viewer.