Changeset 8942 in ntrip
- Timestamp:
- Jun 8, 2020, 3:02:46 PM (4 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/clock_and_orbit/clock_orbit_rtcm.c
r7777 r8942 101 101 102 102 #define T_GPS_IODE(a) ADDBITS(8, a) /* DF071 */ 103 #define T_GLONASS_IOD(a) ADDBITS(8, a) /* DF23 7*/103 #define T_GLONASS_IOD(a) ADDBITS(8, a) /* DF239 */ 104 104 #define T_GALILEO_IOD(a) ADDBITS(10, a) /* DF459 */ 105 105 #define T_SBAS_T0MOD(a) ADDBITS(9, (a/16)) /* DF468 */ 106 106 #define T_SBAS_IODCRC(a) ADDBITS(24, a) /* DF469 */ 107 107 #define T_BDS_TOEMOD(a) ADDBITS(10, (a/8)) /* DF470 */ 108 #define T_BDS_IOD CRC(a) ADDBITS(24, a)/* DF471 */108 #define T_BDS_IOD(a) ADDBITS(8, a) /* DF471 */ 109 109 110 110 #define T_DELTA_RADIAL(a) SCALEADDBITS(22, 10000.0, a) … … 265 265 T_GPS_SATELLITE_ID(co->Sat[i].ID) 266 266 T_BDS_TOEMOD(co->Sat[i].toe) 267 T_BDS_IOD CRC(co->Sat[i].IOD)267 T_BDS_IOD(co->Sat[i].IOD) 268 268 break; 269 269 } … … 393 393 T_GPS_SATELLITE_ID(co->Sat[i].ID) 394 394 T_BDS_TOEMOD(co->Sat[i].toe) 395 T_BDS_IOD CRC(co->Sat[i].IOD)395 T_BDS_IOD(co->Sat[i].IOD) 396 396 break; 397 397 } … … 732 732 #define G_SBAS_IODCRC(a) GETBITS(a, 24) /* DF469 */ 733 733 #define G_BDS_TOEMOD(a) GETBITSFACTOR(a, 10, 8) /* DF470 */ 734 #define G_BDS_IOD CRC(a) GETBITS(a, 24)/* DF471 */734 #define G_BDS_IOD(a) GETBITS(a, 8) /* DF471 */ 735 735 736 736 /* defined values */ … … 993 993 case CLOCKORBIT_SATBDS: 994 994 G_BDS_TOEMOD(co->Sat[pos].toe) 995 G_BDS_IOD CRC(co->Sat[pos].IOD)995 G_BDS_IOD(co->Sat[pos].IOD) 996 996 break; 997 997 } … … 1130 1130 case CLOCKORBIT_SATBDS: 1131 1131 G_BDS_TOEMOD(co->Sat[pos].toe) 1132 G_BDS_IOD CRC(co->Sat[pos].IOD)1132 G_BDS_IOD(co->Sat[pos].IOD) 1133 1133 break; 1134 1134 } -
branches/BNC_2.12/src/ephemeris.cpp
r8933 r8942 1504 1504 //////////////////////////////////////////////////////////////////////////// 1505 1505 unsigned int t_ephBDS::IOD() const { 1506 unsigned char buffer[80]; 1507 int size = 0; 1508 int numbits = 0; 1509 long long bitbuffer = 0; 1510 unsigned char *startbuffer = buffer; 1511 1512 BDSADDBITSFLOAT(14, this->_IDOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13)) 1513 BDSADDBITSFLOAT(11, this->_clock_driftrate, 1.0/static_cast<double>(1<<30) 1514 /static_cast<double>(1<<30)/static_cast<double>(1<<6)) 1515 BDSADDBITSFLOAT(22, this->_clock_drift, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<20)) 1516 BDSADDBITSFLOAT(24, this->_clock_bias, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<3)) 1517 BDSADDBITSFLOAT(18, this->_Crs, 1.0/static_cast<double>(1<<6)) 1518 BDSADDBITSFLOAT(16, this->_Delta_n, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13)) 1519 BDSADDBITSFLOAT(32, this->_M0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1520 BDSADDBITSFLOAT(18, this->_Cuc, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1521 BDSADDBITSFLOAT(32, this->_e, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<3)) 1522 BDSADDBITSFLOAT(18, this->_Cus, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1523 BDSADDBITSFLOAT(32, this->_sqrt_A, 1.0/static_cast<double>(1<<19)) 1524 BDSADDBITSFLOAT(18, this->_Cic, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1525 BDSADDBITSFLOAT(32, this->_OMEGA0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1526 BDSADDBITSFLOAT(18, this->_Cis, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1527 BDSADDBITSFLOAT(32, this->_i0, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1528 BDSADDBITSFLOAT(18, this->_Crc, 1.0/static_cast<double>(1<<6)) 1529 BDSADDBITSFLOAT(32, this->_omega, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<1)) 1530 BDSADDBITSFLOAT(24, this->_OMEGADOT, M_PI/static_cast<double>(1<<30)/static_cast<double>(1<<13)) 1531 BDSADDBITS(5, 0) // the last byte is filled by 0-bits to obtain a length of an integer multiple of 8 1532 1533 return CRC24(size, startbuffer); 1506 return (int(_TOEsec)/720) % 240; 1534 1507 } 1535 1508
Note:
See TracChangeset
for help on using the changeset viewer.