Changeset 2317 in ntrip


Ignore:
Timestamp:
Feb 20, 2010, 9:32:12 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2296 r2317  
    138138  // --------------------- 
    139139  if      (obs->P1) {
    140     satData->P1         = obs->P1 + (bb ? bb->p1 : 0.0);
     140    satData->P1         = obs->P1;
    141141    satData->codeTypeF1 = t_satData::P_CODE;
    142142  }
    143143  else if (obs->C1) {
    144     satData->P1         = obs->C1 + (bb ? bb->c1 : 0.0);
     144    satData->P1         = obs->C1 + (bb ? bb->p1c1 : 0.0);
    145145    satData->codeTypeF1 = t_satData::C_CODE;
    146146  }
     
    151151   
    152152  if      (obs->P2) {
    153     satData->P2         = obs->P2 + (bb ? bb->p2 : 0.0);
     153    satData->P2         = obs->P2 + (bb ? bb->p1p2 : 0.0);
    154154    satData->codeTypeF2 = t_satData::P_CODE;
    155155  }
    156156  else if (obs->C2) {
    157     satData->P2         = obs->C2 + (bb ? bb->c2 : 0.0);
     157    satData->P2         = obs->C2;
    158158    satData->codeTypeF2 = t_satData::C_CODE;
    159159  }
     
    332332      }
    333333    }
    334     else if ( messageType == BTYPE_GPS     ||
    335               messageType == BTYPE_GLONASS ) {
     334    else if ( messageType == BTYPE_GPS ) {
    336335
    337336      t_bias* bb = 0;
     
    352351        double bValue;
    353352        in >> bType >> bValue;
    354         if      (bType == 0) {
    355           bb->c1 = bValue;
     353        if      (bType ==  0) {
     354          bb->p1c1 = -bValue;
    356355        }
    357         else if (bType >= 1 && bType <= 4) {
    358           bb->p1 = bValue;
    359         }
    360         else if (bType == 5) {
    361           bb->c2 = bValue;
    362         }
    363         else if (bType >= 6 && bType <= 13) {
    364           bb->p2 = bValue;
     356        else if (bType == 10) {
     357          bb->p1p2 = -bValue;
    365358        }
    366359      }
  • trunk/BNC/bncpppclient.h

    r2296 r2317  
    100100 public:
    101101  t_bias() {
    102     c1 = 0.0;
    103     p1 = 0.0;
    104     c2 = 0.0;
    105     p2 = 0.0;
     102    p1c1 = 0.0;
     103    p1p2 = 0.0;
    106104  }
    107105  bncTime tt;
    108   double  c1;
    109   double  p1;
    110   double  c2;
    111   double  p2;
     106  double  p1c1;
     107  double  p1p2;
    112108};
    113109
Note: See TracChangeset for help on using the changeset viewer.