- Timestamp:
- Nov 8, 2024, 5:09:52 PM (2 weeks ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r10577 r10579 1743 1743 /* set unused F/NAV values */ 1744 1744 eph._E5aHS = 0.0; 1745 eph._e5aDataIn Valid = false;1745 eph._e5aDataInvalid = false; 1746 1746 1747 1747 GETFLOATSIGN(eph._BGD_1_5B, 10, 1.0 / (double )(1 << 30) / (double )(1 << 2)) 1748 1748 GETBITS(eph._E5bHS, 2) 1749 GETBITS(eph._e5bDataIn Valid, 1)1749 GETBITS(eph._e5bDataInvalid, 1) 1750 1750 GETBITS(eph._E1_bHS, 2) 1751 GETBITS(eph._e1DataIn Valid, 1)1751 GETBITS(eph._e1DataInvalid, 1) 1752 1752 if (eph._E5bHS != eph._E1_bHS) { 1753 1753 #ifdef BNC_DEBUG_BCE … … 1774 1774 eph._E5bHS = 0.0; 1775 1775 eph._E1_bHS = 0.0; 1776 eph._e1DataIn Valid = false;1777 eph._e5bDataIn Valid = false;1776 eph._e1DataInvalid = false; 1777 eph._e5bDataInvalid = false; 1778 1778 1779 1779 GETBITS(eph._E5aHS, 2) 1780 GETBITS(eph._e5aDataIn Valid, 1)1780 GETBITS(eph._e5aDataInvalid, 1) 1781 1781 eph._ephType = t_eph::FNAV; 1782 1782 } -
trunk/BNC/src/RTCM3/ephEncoder.cpp
r10559 r10579 248 248 GALILEOADDBITSFLOAT(10, eph._BGD_1_5B, 1.0/static_cast<double>(1<<30)/static_cast<double>(1<<2)) 249 249 GALILEOADDBITS(2, static_cast<int>(eph._E5bHS)) 250 GALILEOADDBITS(1, eph._e5bDataIn Valid ? 1 : 0)250 GALILEOADDBITS(1, eph._e5bDataInvalid ? 1 : 0) 251 251 GALILEOADDBITS(2, static_cast<int>(eph._E1_bHS)) 252 GALILEOADDBITS(1, eph._e1DataIn Valid ? 1 : 0)252 GALILEOADDBITS(1, eph._e1DataInvalid ? 1 : 0) 253 253 } else { 254 254 GALILEOADDBITS(2, static_cast<int>(eph._E5aHS)) 255 GALILEOADDBITS(1, eph._e5aDataIn Valid ? 1 : 0)255 GALILEOADDBITS(1, eph._e5aDataInvalid ? 1 : 0) 256 256 } 257 257 -
trunk/BNC/src/ephemeris.cpp
r10578 r10579 1542 1542 } else { 1543 1543 // Bit 0 1544 _e1DataIn Valid = (int(SVhealth) & (1 << 0));1544 _e1DataInvalid = (int(SVhealth) & (1 << 0)); 1545 1545 // Bit 1-2 1546 1546 _E1_bHS = double((int(SVhealth) >> 1) & 0x3); 1547 1547 // Bit 3 1548 _e5aDataIn Valid = (int(SVhealth) & (1 << 3));1548 _e5aDataInvalid = (int(SVhealth) & (1 << 3)); 1549 1549 // Bit 4-5 1550 1550 _E5aHS = double((int(SVhealth) >> 4) & 0x3); 1551 1551 // Bit 6 1552 _e5bDataIn Valid = (int(SVhealth) & (1 << 6));1552 _e5bDataInvalid = (int(SVhealth) & (1 << 6)); 1553 1553 // Bit 7-8 1554 1554 _E5bHS = double((int(SVhealth) >> 7) & 0x3); … … 1667 1667 return 1; 1668 1668 } 1669 if (_e5aDataIn Valid || _e5bDataInValid || _e1DataInValid) {1669 if (_e5aDataInvalid || _e5bDataInvalid || _e1DataInvalid) { 1670 1670 return 1; 1671 1671 } … … 1736 1736 // SVhealth 1737 1737 // Bit 3 : E5a DVS 1738 if (_e5aDataIn Valid) {1738 if (_e5aDataInvalid) { 1739 1739 SVhealth |= (1 << 3); 1740 1740 } … … 1756 1756 // SVhealth 1757 1757 // Bit 0 : E1-B DVS 1758 if (_e1DataIn Valid) {1758 if (_e1DataInvalid) { 1759 1759 SVhealth |= (1 << 0); 1760 1760 } … … 1769 1769 } 1770 1770 // Bit 3 : E5a DVS 1771 if (_e5aDataIn Valid) {1771 if (_e5aDataInvalid) { 1772 1772 SVhealth |= (1 << 3); 1773 1773 } … … 1782 1782 } 1783 1783 // Bit 6 : E5b DVS 1784 if (_e5bDataIn Valid) {1784 if (_e5bDataInvalid) { 1785 1785 SVhealth |= (1 << 6); 1786 1786 } -
trunk/BNC/src/ephemeris.h
r10578 r10579 351 351 _BGD_1_5B = 0.0; 352 352 _TOT = 0.0; 353 _inav = 0; 354 /** Data comes from F/NAV when <code>true</code> */ 355 _fnav = 0; 356 _e1DataInValid = 0; 357 _e5aDataInValid = 0; 358 _e5bDataInValid = 0; 353 _inav = false; 354 _fnav = false; 355 _e1DataInvalid = false; 356 _e5aDataInvalid = false; 357 _e5bDataInvalid = false; 359 358 _receptStaID = ""; 360 359 }; … … 406 405 407 406 double _TOT; // [s] 408 /** Data comes from I/NAV when <code>true</code> */ 409 int _inav; 410 /** Data comes from F/NAV when <code>true</code> */ 411 int _fnav; 412 /** E1 Data is not valid */ 413 int _e1DataInValid; 414 /** E5A Data is not valid */ 415 int _e5aDataInValid; 416 /** E5B Data is not valid */ 417 int _e5bDataInValid; 407 bool _inav; // Data comes from I/NAV when <code>true</code> 408 bool _fnav; // Data comes from F/NAV when <code>true</code> 409 bool _e1DataInvalid; // E1 Data is not valid 410 bool _e5aDataInvalid; // E5A Data is not valid 411 bool _e5bDataInvalid; // E5B Data is not valid 418 412 }; 419 413
Note:
See TracChangeset
for help on using the changeset viewer.