Changeset 6799 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Apr 28, 2015, 4:17:15 PM (10 years ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/ephEncoder.cpp
r6635 r6799 45 45 int numbits = 0; 46 46 unsigned long long bitbuffer = 0; 47 if (eph._ura <= 2.40){ 48 eph._ura = 0; 49 } 50 else if (eph._ura <= 3.40){ 51 eph._ura = 1; 52 } 53 else if (eph._ura <= 6.85){ 54 eph._ura = 2; 55 } 56 else if (eph._ura <= 9.65){ 57 eph._ura = 3; 58 } 59 else if (eph._ura <= 13.65){ 60 eph._ura = 4; 61 } 62 else if (eph._ura <= 24.00){ 63 eph._ura = 5; 64 } 65 else if (eph._ura <= 48.00){ 66 eph._ura = 6; 67 } 68 else if (eph._ura <= 96.00){ 69 eph._ura = 7; 70 } 71 else if (eph._ura <= 192.00){ 72 eph._ura = 8; 73 } 74 else if (eph._ura <= 384.00){ 75 eph._ura = 9; 76 } 77 else if (eph._ura <= 768.00){ 78 eph._ura = 10; 79 } 80 else if (eph._ura <= 1536.00){ 81 eph._ura = 11; 82 } 83 else if (eph._ura <= 1536.00){ 84 eph._ura = 12; 85 } 86 else if (eph._ura <= 2072.00){ 87 eph._ura = 13; 88 } 89 else if (eph._ura <= 6144.00){ 90 eph._ura = 14; 91 } 92 else{ 93 eph._ura = 15; 94 } 95 47 eph._ura = indexFromAccuracy(eph._ura, eph.type()); 96 48 GPSADDBITS(12, 1019) 97 49 if (eph._prn.system() == 'J') { … … 256 208 buffer= buffer+3; 257 209 210 eph._SISA = indexFromAccuracy(eph._SISA, eph.type()); 211 258 212 bool inav = ( (eph._flags & GALEPHF_INAV) == GALEPHF_INAV ); 259 260 213 GALILEOADDBITS(12, inav ? 1046 : 1045) 261 214 GALILEOADDBITS(6, eph._prn.number()) … … 340 293 buffer= buffer+3; 341 294 295 eph._ura = indexFromAccuracy(eph._ura, eph.type()); 342 296 SBASADDBITS(12, 1043) 343 297 SBASADDBITS(6, eph._prn.number()-20) … … 388 342 buffer= buffer+3; 389 343 344 eph._URA = indexFromAccuracy(eph._URA, eph.type()); 390 345 BDSADDBITS(12, RTCM3ID_BDS) 391 346 BDSADDBITS(6, eph._prn.number()) 392 347 BDSADDBITS(13, eph._TOC_bdt.gpsw() - 1356.0) 393 BDSADDBITS(4, eph._URA I);348 BDSADDBITS(4, eph._URA); 394 349 BDSADDBITSFLOAT(14, eph._IDOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13)) 395 350 BDSADDBITS(5, eph._AODE) -
trunk/BNC/src/RTCM3/ephEncoder.h
r6600 r6799 3 3 4 4 #include "ephemeris.h" 5 #include "bncutils.h" 5 6 6 7 class t_ephEncoder {
Note:
See TracChangeset
for help on using the changeset viewer.