Changeset 3508 in ntrip


Ignore:
Timestamp:
Nov 20, 2011, 9:40:26 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/GPSS/hassDecoder.cpp

    r3507 r3508  
    7171    QString corrLine;
    7272
    73     int messageType    = -1;
    7473    int updateInterval =  0;
     74    int messageType = 0;
     75    if      (prn[0] == 'G') {
     76      messageType = -COTYPE_GPSCOMBINED;
     77    }
     78    else if (prn[0] == 'R') {
     79      messageType = -COTYPE_GLONASSCOMBINED;
     80    }
    7581
    7682    corrLine.sprintf("%d %d %d %.1f %s"
  • trunk/BNC/bncephuser.cpp

    r3496 r3508  
    165165  if (!relevantMessageType(messageType)) {
    166166    return failure;
     167  }
     168
     169  if (messageType < 0) {
     170    xyzCorr = true;  // correction in xyz instead of rao
    167171  }
    168172
  • trunk/BNC/bncephuser.h

    r3496 r3508  
    4444    eph     = 0;
    4545    hrClk   = 0.0;
     46    xyzCorr = false;
    4647  }
    4748  bool ready() {return raoSet && dClkSet;}
    4849
    4950  static bool relevantMessageType(int msgType) {
     51    if (msgType < 0) {
     52      msgType = -msgType;
     53    }
    5054    return ( msgType == COTYPE_GPSCOMBINED     ||
    5155             msgType == COTYPE_GLONASSCOMBINED ||
     
    7276  bool         raoSet;
    7377  bool         dClkSet;
     78  bool         xyzCorr;
    7479  const t_eph* eph;
    7580};
  • trunk/BNC/bncpppclient.cpp

    r3496 r3508  
    409409  }
    410410
    411   RSW_to_XYZ(xc.Rows(1,3), vv, raoHlp, dx);
     411  if (cc->xyzCorr) {
     412    dx = raoHlp;
     413  }
     414  else {
     415    RSW_to_XYZ(xc.Rows(1,3), vv, raoHlp, dx);
     416  }
    412417
    413418  xc[0] -= dx[0];
Note: See TracChangeset for help on using the changeset viewer.