Changeset 707 in ntrip


Ignore:
Timestamp:
Mar 5, 2008, 6:14:18 PM (16 years ago)
Author:
weber
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/RTCM2.cpp

    r706 r707  
    4444//   2008/03/01  OMO  Compilation flag for epoch rounding
    4545//   2008/03/04  AHA  Fixed problems with PRN 32
     46//   2008/03/05  AHA  Implemeted fix for Trimble 4000SSI receivers
    4647//
    4748// (c) DLR/GSOC
     
    7273// or an unclear formulation of the standard.
    7374
    74 #define ROUND_EPOCH 1 
    75 
     75#define ROUND_EPOCH  1
     76
     77// Fix for data streams originating from TRIMBLE_4000SSI receivers.
     78// GPS PRN32 is erroneously flagged as GLONASS satellite in the C/A
     79// pseudorange messages. We therefore use a majority voting to
     80// determine the true constellation for this message.
     81// This fix is only required for Trimble4000SSI receivers but can also
     82// be used with all other known receivers.
     83
     84#define FIX_TRIMBLE_4000SSI 1
    7685
    7786using namespace std;
     
    10101019    if (isOth) return;
    10111020     
     1021#if (FIX_TRIMBLE_4000SSI==1)
     1022    // Fix for data streams originating from TRIMBLE_4000SSI receivers.
     1023    // GPS PRN32 is erroneously flagged as GLONASS satellite in the C/A
     1024    // pseudorange messages. We therefore use a majority voting to
     1025    // determine the true constellation for this message.
     1026    // This fix is only required for Trimble4000SSI receivers but can also
     1027    // be used with all other known receivers.
     1028    int nGPS=0;
     1029    for(int iSat=0; iSat<NSat; iSat++){
     1030      // Constellation (for each satellite in message)
     1031      isGPS = ( P.getUnsignedBits(iSat*48+26,1)==0 );
     1032      if(isGPS) nGPS++;
     1033    };
     1034    isGPS = (2*nGPS>NSat); 
     1035#else
    10121036    // Constellation (for first satellite in message)
    10131037    isGPS = ( P.getUnsignedBits(26,1)==0 );
    1014     GPSonly = GPSonly && isGPS;
     1038#endif
    10151039
    10161040    // Multiple Message Indicator (only checked for first satellite)
Note: See TracChangeset for help on using the changeset viewer.