Changeset 4886 in ntrip for trunk


Ignore:
Timestamp:
Jan 10, 2013, 10:47:44 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r4756 r4886  
    657657        << obsToStr(obs.measdata("S1P", rnxVers), 8, 3) << ' '
    658658        << setw(2)  << obs.slip_cnt_L1;
    659     str << "  2P "
    660         << obsToStr(obs.measdata("C2P", rnxVers)) << ' '
    661         << obsToStr(obs.measdata("L2P", rnxVers)) << ' '
    662         << obsToStr(obs.measdata("D2P", rnxVers)) << ' '
    663         << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' '
    664         << setw(2)  << obs.slip_cnt_L2;
     659    if      (obs.measdata("C2P", rnxVers) != 0.0) {
     660      str << "  2P "
     661          << obsToStr(obs.measdata("C2P", rnxVers)) << ' '
     662          << obsToStr(obs.measdata("L2P", rnxVers)) << ' '
     663          << obsToStr(obs.measdata("D2P", rnxVers)) << ' '
     664          << obsToStr(obs.measdata("S2P", rnxVers), 8, 3) << ' '
     665          << setw(2)  << obs.slip_cnt_L2;
     666    }
     667    else if (obs.measdata("C2C", rnxVers) != 0.0) {
     668      str << "  2X "
     669          << obsToStr(obs.measdata("C2C", rnxVers)) << ' '
     670          << obsToStr(obs.measdata("L2C", rnxVers)) << ' '
     671          << obsToStr(obs.measdata("D2C", rnxVers)) << ' '
     672          << obsToStr(obs.measdata("S2C", rnxVers), 8, 3) << ' '
     673          << setw(2)  << obs.slip_cnt_L2;
     674    }
    665675    str << "  5C "
    666676        << obsToStr(obs.measdata("C5", rnxVers)) << ' '
Note: See TracChangeset for help on using the changeset viewer.