Changeset 6190 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Sep 14, 2014, 4:43:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6150 r6190 662 662 663 663 ostringstream str; 664 //// str.setf(ios::showpoint | ios::fixed); 665 //// 666 //// str << obs._prn << ' '; 667 //// 668 //// float rnxVers = 3.0; 669 //// 670 //// for (int ie = 0; ie < GNSSENTRY_NUMBER; ie++) { 671 //// QString rnxStr = obs.rnxStr(ie); 672 //// if (rnxStr.length() >= 2) { 673 //// double data = obs.measdata(rnxStr, rnxVers); 674 //// if (data != 0.0) { 675 //// int width = (rnxStr[0] == 'S') ? 8 : 14; 676 //// int prec = 3; 677 //// str << ' ' << rnxStr.toAscii().data() 678 //// << ' ' << obsToStr(data, width, prec); 679 //// if (rnxStr[0] == 'L') { 680 //// int slipCnt = 0; 681 //// if (rnxStr[1] == '1') { 682 //// slipCnt = obs.slip_cnt_L1; 683 //// } 684 //// else if (rnxStr[1] == '2') { 685 //// slipCnt = obs.slip_cnt_L2; 686 //// } 687 //// else if (rnxStr[1] == '5') { 688 //// slipCnt = obs.slip_cnt_L5; 689 //// } 690 //// str << ' ' << setw(3) << slipCnt; 691 //// } 692 //// } 693 //// } 694 //// } 664 str.setf(ios::showpoint | ios::fixed); 665 666 str << obs._prn.toString() << ' '; 667 668 for (unsigned ii = 0; ii < obs._obs.size(); ii++) { 669 const t_frqObs* frqObs = obs._obs[ii]; 670 if (frqObs->_codeValid) { 671 str << " C" << frqObs->_rnxType2ch << ' ' 672 << setw(14) << setprecision(3) << frqObs->_code; 673 } 674 if (frqObs->_phaseValid) { 675 str << " L" << frqObs->_rnxType2ch << ' ' 676 << setw(14) << setprecision(3) << frqObs->_phase 677 << ' ' << setw(3) << frqObs->_slipCounter; 678 } 679 if (frqObs->_dopplerValid) { 680 str << " D" << frqObs->_rnxType2ch << ' ' 681 << setw(14) << setprecision(3) << frqObs->_doppler; 682 } 683 if (frqObs->_snrValid) { 684 str << " S" << frqObs->_rnxType2ch << ' ' 685 << setw(8) << setprecision(3) << frqObs->_doppler; 686 } 687 } 695 688 696 689 return str.str();
Note:
See TracChangeset
for help on using the changeset viewer.