Changeset 6557 in ntrip
- Timestamp:
- Jan 21, 2015, 10:50:42 AM (10 years ago)
- Location:
- trunk/BNC/src/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r6442 r6557 64 64 bncSettings settings; 65 65 QString intr = settings.value("uploadIntr").toString(); 66 66 QStringList help = settings.value("combineStreams").toStringList(); 67 if (help.size() > 1) { // combination stream upload 68 _samplRtcmClkCorr = settings.value("cmbSampl").toInt(); 69 } else { // single stream upload or sp3 file generation 70 _samplRtcmClkCorr = 5; // default 71 } 67 72 _samplRtcmEphCorr = settings.value("uploadSamplRtcmEphCorr").toDouble(); 68 int samplClkRnx = settings.value("uploadSamplClkRnx").toInt();69 int samplSp3 = settings.value("uploadSamplSp3").toInt() * 60;73 int samplClkRnx = settings.value("uploadSamplClkRnx").toInt(); 74 int samplSp3 = settings.value("uploadSamplSp3").toInt() * 60; 70 75 71 76 if (_samplRtcmEphCorr == 0.0) { … … 305 310 int clkUpdInd = 2; // 5 sec 306 311 int ephUpdInd = clkUpdInd; // default 307 if (_samplRtcmEphCorr == 10.0) { 308 ephUpdInd = 3; 309 } 310 else if (_samplRtcmEphCorr == 15.0) { 311 ephUpdInd = 4; 312 } 313 else if (_samplRtcmEphCorr == 30.0) { 314 ephUpdInd = 5; 315 } 316 else if (_samplRtcmEphCorr == 60.0) { 317 ephUpdInd = 6; 318 } 319 else if (_samplRtcmEphCorr == 120.0) { 320 ephUpdInd = 7; 321 } 322 else if (_samplRtcmEphCorr == 240.0) { 323 ephUpdInd = 8; 324 } 325 else if (_samplRtcmEphCorr == 300.0) { 326 ephUpdInd = 9; 327 } 328 else if (_samplRtcmEphCorr == 600.0) { 329 ephUpdInd = 10; 330 } 331 else if (_samplRtcmEphCorr == 900.0) { 332 ephUpdInd = 11; 312 313 if (_samplRtcmEphCorr != 5) { 314 ephUpdInd = determineUpdateInd(_samplRtcmEphCorr); 315 } 316 if (_samplRtcmClkCorr != 5) { 317 clkUpdInd = determineUpdateInd(_samplRtcmClkCorr); 333 318 } 334 319 … … 790 775 } 791 776 777 int bncRtnetUploadCaster::determineUpdateInd(double samplingRate) { 778 779 if (samplingRate == 10.0) { 780 return 3; 781 } 782 else if (samplingRate == 15.0) { 783 return 4; 784 } 785 else if (samplingRate == 30.0) { 786 return 5; 787 } 788 else if (samplingRate == 60.0) { 789 return 6; 790 } 791 else if (samplingRate == 120.0) { 792 return 7; 793 } 794 else if (samplingRate == 240.0) { 795 return 8; 796 } 797 else if (samplingRate == 300.0) { 798 return 9; 799 } 800 else if (samplingRate == 600.0) { 801 return 10; 802 } 803 else if (samplingRate == 900.0) { 804 return 11; 805 } 806 else if (samplingRate == 1800.0) { 807 return 12; 808 } 809 else if (samplingRate == 3600.0) { 810 return 13; 811 } 812 else if (samplingRate == 7200.0) { 813 return 14; 814 } 815 else if (samplingRate == 10800.0) { 816 return 15; 817 } 818 return 2;// default 819 } -
trunk/BNC/src/upload/bncrtnetuploadcaster.h
r6442 r6557 39 39 void crdTrafo(int GPSWeek, ColumnVector& xyz, double& dc); 40 40 41 int determineUpdateInd(double samplingRate); 42 41 43 QString _casterID; 42 44 bncEphUser* _ephUser; … … 47 49 int _SID; 48 50 int _IOD; 51 int _samplRtcmClkCorr; 49 52 double _samplRtcmEphCorr; 50 53 double _dx;
Note:
See TracChangeset
for help on using the changeset viewer.