Changeset 6802 in ntrip for trunk/BNC/src
- Timestamp:
- Apr 29, 2015, 1:47:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r6801 r6802 923 923 } 924 924 // Bit 1-2 925 _E1_bHS = double((int(SVhealth) >> 1) & 0x 2);925 _E1_bHS = double((int(SVhealth) >> 1) & 0x3); 926 926 // Bit 3 927 927 if (int(SVhealth) & (1<<3)) { … … 929 929 } 930 930 // Bit 4-5 931 _E5aHS = double((int(SVhealth) >> 4) & 0x 2);931 _E5aHS = double((int(SVhealth) >> 4) & 0x3); 932 932 // Bit 6 933 933 if (int(SVhealth) & (1<<6)) { … … 935 935 } 936 936 // Bit 7-8 937 _E5bHS = double((int(SVhealth) >> 7) & 0x 2);937 _E5bHS = double((int(SVhealth) >> 7) & 0x3); 938 938 } 939 939 } … … 1151 1151 else if ((_flags & GALEPHF_INAV) == GALEPHF_INAV) { 1152 1152 dataSource |= (1<<0); 1153 dataSource |= (1<<1);// not clear but common practice1153 dataSource |= (1<<1);// not clear but seems to be common in practice 1154 1154 dataSource |= (1<<2); 1155 1155 dataSource |= (1<<9); … … 1170 1170 SVhealth |= (1<<2); 1171 1171 } 1172 // Bit 3 : E5a DVS 1173 if ((_flags & GALEPHF_E5ADINVALID) == GALEPHF_E5ADINVALID) { 1174 SVhealth |= (1<<3); 1175 } 1176 // Bit 4-5: E5a HS 1177 if (_E5aHS == 1.0) { 1178 SVhealth |= (1<<4); 1179 } 1180 else if (_E5aHS == 2.0) { 1181 SVhealth |= (1<<5); 1182 } 1183 else if (_E5aHS == 3.0) { 1184 SVhealth |= (1<<4); 1185 SVhealth |= (1<<5); 1186 } 1172 1187 // Bit 6 : E5b DVS 1173 if ((_flags & GALEPHF_E 1DINVALID) == GALEPHF_E1DINVALID) {1188 if ((_flags & GALEPHF_E5BDINVALID) == GALEPHF_E5BDINVALID) { 1174 1189 SVhealth |= (1<<6); 1175 1190 }
Note:
See TracChangeset
for help on using the changeset viewer.