Changeset 707 in ntrip
- Timestamp:
- Mar 5, 2008, 6:14:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r706 r707 44 44 // 2008/03/01 OMO Compilation flag for epoch rounding 45 45 // 2008/03/04 AHA Fixed problems with PRN 32 46 // 2008/03/05 AHA Implemeted fix for Trimble 4000SSI receivers 46 47 // 47 48 // (c) DLR/GSOC … … 72 73 // or an unclear formulation of the standard. 73 74 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 76 85 77 86 using namespace std; … … 1010 1019 if (isOth) return; 1011 1020 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 1012 1036 // Constellation (for first satellite in message) 1013 1037 isGPS = ( P.getUnsignedBits(26,1)==0 ); 1014 GPSonly = GPSonly && isGPS; 1038 #endif 1015 1039 1016 1040 // Multiple Message Indicator (only checked for first satellite)
Note:
See TracChangeset
for help on using the changeset viewer.