Changeset 5935 in ntrip


Ignore:
Timestamp:
Aug 15, 2014, 11:13:48 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppSatObs.cpp

    r5918 r5935  
    8888  // Select two pseudoranges and two phase observations
    8989  // --------------------------------------------------
    90   const string preferredAttrib = "CWP";
     90  const string preferredAttrib = "CWP?";
    9191  for (unsigned iPref = 0; iPref < preferredAttrib.length(); iPref++) {
    92     string obsType1 = "1?"; obsType1[1] = preferredAttrib[iPref];
     92    string obsType1 = (preferredAttrib[iPref] == '?') ? string("1") : string("1") + preferredAttrib[iPref];
     93    string obsType2 = (preferredAttrib[iPref] == '?') ? string("2") : string("2") + preferredAttrib[iPref];
    9394    if (_validObs1 == 0) {
    9495      for (unsigned ii = 0; ii < _allObs.size(); ii++) {
     
    100101    }
    101102    if (dualFreq) {
    102       string obsType2 = "2?"; obsType2[1] = preferredAttrib[iPref];
    103103      if (_validObs2 == 0) {
    104104        for (unsigned ii = 0; ii < _allObs.size(); ii++) {
Note: See TracChangeset for help on using the changeset viewer.