- Timestamp:
- Mar 29, 2016, 5:05:04 PM (9 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r7753 r7850 134 134 /* L1 */ 135 135 GETBITS(code, 1); 136 frqObs->_rnxType2ch = code ? "1W" : "1C";136 (code) ? frqObs->_rnxType2ch.assign("1W") : frqObs->_rnxType2ch.assign("1C"); 137 137 GETBITS(l1range, 24); 138 138 GETBITSSIGN(i, 20); … … 168 168 switch(code) 169 169 { 170 case 3: frqObs->_rnxType2ch = "2W"; /* or "2Y"? */ break;171 case 2: frqObs->_rnxType2ch = "2W"; break;172 case 1: frqObs->_rnxType2ch = "2P"; break;173 case 0: frqObs->_rnxType2ch = "2X"; /* or "2S" or "2L"? */ break;170 case 3: frqObs->_rnxType2ch.assign("2W"); /* or "2Y"? */ break; 171 case 2: frqObs->_rnxType2ch.assign("2W"); break; 172 case 1: frqObs->_rnxType2ch.assign("2P"); break; 173 case 0: frqObs->_rnxType2ch.assign("2X"); /* or "2S" or "2L"? */ break; 174 174 } 175 175 GETBITSSIGN(i,14); … … 702 702 { 703 703 t_frqObs *frqObs = new t_frqObs; 704 frqObs->_rnxType2ch = cd.code;704 frqObs->_rnxType2ch.assign(cd.code); 705 705 706 706 switch(type % 10) … … 894 894 t_frqObs *frqObs = new t_frqObs; 895 895 /* L1 */ 896 frqObs->_rnxType2ch = code ? "1P" : "1C";896 (code) ? frqObs->_rnxType2ch.assign("1P") : frqObs->_rnxType2ch.assign("1C"); 897 897 GETBITS(l1range, 25); 898 898 GETBITSSIGN(i, 20); … … 928 928 switch(code) 929 929 { 930 case 3: frqObs->_rnxType2ch = "2P"; break;931 case 2: frqObs->_rnxType2ch = "2P"; break;932 case 1: frqObs->_rnxType2ch = "2P"; break;933 case 0: frqObs->_rnxType2ch = "2C"; break;930 case 3: frqObs->_rnxType2ch.assign("2P"); break; 931 case 2: frqObs->_rnxType2ch.assign("2P"); break; 932 case 1: frqObs->_rnxType2ch.assign("2P"); break; 933 case 0: frqObs->_rnxType2ch.assign("2C"); break; 934 934 } 935 935 GETBITSSIGN(i,14); -
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r7781 r7850 393 393 const CodeBias::BiasSat::CodeBiasEntry& biasEntry = _codeBias.Sat[ii].Biases[jj]; 394 394 t_frqCodeBias frqCodeBias; 395 frqCodeBias._rnxType2ch = codeTypeToRnxType(sysCh, biasEntry.Type);395 frqCodeBias._rnxType2ch.assign(codeTypeToRnxType(sysCh, biasEntry.Type)); 396 396 frqCodeBias._value = biasEntry.Bias; 397 397 if (!frqCodeBias._rnxType2ch.empty()) { … … 450 450 const PhaseBias::PhaseBiasSat::PhaseBiasEntry& biasEntry = _phaseBias.Sat[ii].Biases[jj]; 451 451 t_frqPhaseBias frqPhaseBias; 452 frqPhaseBias._rnxType2ch = codeTypeToRnxType(sysCh, biasEntry.Type);452 frqPhaseBias._rnxType2ch.assign(codeTypeToRnxType(sysCh, biasEntry.Type)); 453 453 frqPhaseBias._value = biasEntry.Bias; 454 454 frqPhaseBias._fixIndicator = biasEntry.SignalIntegerIndicator; -
trunk/BNC/src/pppCrdFile.cpp
r7523 r7850 90 90 getline(in, hlp); 91 91 stripWhiteSpace(hlp); 92 staInfo._antenna = hlp.substr(0,20);92 staInfo._antenna.assign( hlp.substr(0,20)); 93 93 hlp = hlp.erase(0, 20); 94 94 if (hlp.length()) { -
trunk/BNC/src/pppMain.cpp
r7523 r7850 156 156 157 157 if (_realTime) { 158 opt->_corrMount = settings.value("PPP/corrMount").toString().toAscii().data();158 opt->_corrMount.assign(settings.value("PPP/corrMount").toString().toStdString()); 159 159 } 160 160 else { 161 opt->_rinexObs = settings.value("PPP/rinexObs").toString().toAscii().data();162 opt->_rinexNav = settings.value("PPP/rinexNav").toString().toAscii().data();163 opt->_corrFile = settings.value("PPP/corrFile").toString().toAscii().data();164 } 165 166 opt->_crdFile = settings.value("PPP/crdFile").toString().toAscii().data();167 opt->_antexFileName = settings.value("PPP/antexFile").toString().toAscii().data();161 opt->_rinexObs.assign(settings.value("PPP/rinexObs").toString().toStdString()); 162 opt->_rinexNav.assign(settings.value("PPP/rinexNav").toString().toStdString()); 163 opt->_corrFile.assign(settings.value("PPP/corrFile").toString().toStdString()); 164 } 165 166 opt->_crdFile.assign(settings.value("PPP/crdFile").toString().toStdString()); 167 opt->_antexFileName.assign(settings.value("PPP/antexFile").toString().toStdString()); 168 168 169 169 opt->_sigmaC1 = settings.value("PPP/sigmaC1").toDouble(); if (opt->_sigmaC1 <= 0.0) opt->_sigmaC1 = 2.0; … … 353 353 // Information from the coordinate file 354 354 // ------------------------------------ 355 string crdFileName(settings.value("PPP/crdFile").toString().to Ascii().data());355 string crdFileName(settings.value("PPP/crdFile").toString().toStdString()); 356 356 if (!crdFileName.empty()) { 357 357 vector<t_pppCrdFile::t_staInfo> staInfoVec;
Note:
See TracChangeset
for help on using the changeset viewer.