Ignore:
Timestamp:
Jul 5, 2012, 6:45:18 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/bncpostprocess.cpp

    r4364 r4389  
    111111  strncpy(obs.StatID, rnxObsFile->markerName().toAscii().constData(),
    112112          sizeof(obs.StatID));
     113
    113114  obs.satSys   = rnxSat.satSys;
    114115  obs.satNum   = rnxSat.satNum;
    115116  obs.GPSWeek  = epo->tt.gpsw();
    116117  obs.GPSWeeks = epo->tt.gpssec();
    117   //// TODO: check RINEX Version 3 types
     118
    118119  for (int iType = 0; iType < rnxObsFile->nTypes(obs.satSys); iType++) {
    119120    QByteArray type = rnxObsFile->obsType(obs.satSys,iType).toAscii();
    120     if      (type.indexOf("C1") == 0 && obs.C1  == 0.0) {
    121       obs.C1 = rnxSat.obs[iType];
    122     }
    123     else if (type.indexOf("P1") == 0 && obs.P1  == 0.0) {
    124       obs.P1 = rnxSat.obs[iType];
    125     }
    126     else if (type.indexOf("L1") == 0 && obs.L1C == 0.0) {
    127       obs.L1C = rnxSat.obs[iType];
    128       if      (obs.slip_cnt_L1 < 0) {  // undefined value
    129         obs.slip_cnt_L1 = 0;
    130       }
    131       else if (rnxSat.lli[iType] & 1) {
    132         ++obs.slip_cnt_L1;
    133       }
    134     }
    135     else if (type.indexOf("C2") == 0 && obs.C2  == 0.0) {
    136       obs.C2 = rnxSat.obs[iType];
    137     }
    138     else if (type.indexOf("P2") == 0 && obs.P2  == 0.0) {
    139       obs.P2 = rnxSat.obs[iType];
    140     }
    141     else if (type.indexOf("L2") == 0 && obs.L2C == 0.0) {
    142       obs.L2C = rnxSat.obs[iType];
    143       if      (obs.slip_cnt_L2 < 0) {  // undefined value
    144         obs.slip_cnt_L2 = 0;
    145       }
    146       else if (rnxSat.lli[iType] & 1) {
    147         ++obs.slip_cnt_L2;
    148       }
    149     }
     121    int iEntry = obs.str2entry(type.data());
     122    obs._measdata[iEntry] = rnxSat.obs[iType];
     123    // TOOD: handle slip flags
    150124  }
    151125}
Note: See TracChangeset for help on using the changeset viewer.