- Timestamp:
- Jun 23, 2022, 2:58:19 PM (2 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r9765 r9774 164 164 break; 165 165 case D1: 166 navTypeString = epochStart + ephStr + "D1 " + eolStr;166 navTypeString = epochStart + ephStr + "D1 " + eolStr; 167 167 break; 168 168 case D2: 169 navTypeString = epochStart + ephStr + "D2 " + eolStr;169 navTypeString = epochStart + ephStr + "D2 " + eolStr; 170 170 break; 171 171 case SBASL1: … … 1530 1530 } 1531 1531 1532 // Health status of SBAS Ephemeris (virtual) 1533 //////////////////////////////////////////////////////////////////////////// 1534 unsigned int t_ephSBAS::isUnhealthy() const { 1535 1536 // Bit 5 1537 bool URAindexIs15 = (int(_health) & (1<<5)); 1538 if (URAindexIs15) { 1539 // in this case it is recommended 1540 // to set the bits 0,1,2,3 to 1 (MT17health = 15) 1541 return 1; 1542 } 1543 1544 // Bit 0-3 1545 int MT17health = (int(_health)) & (0x0f); 1546 if (MT17health) { 1547 return 1; 1548 } 1549 1550 // Bit 4 1551 // bool MT17HealthIsUnavailable = (int(_health) & (1<<4)); 1552 // is not used because the MT17health bits can be independently set if URA index is 15 1553 1554 return 0; 1555 } 1556 1557 1532 1558 // RINEX Format String 1533 1559 ////////////////////////////////////////////////////////////////////////////// -
trunk/BNC/src/ephemeris.h
r9765 r9774 387 387 virtual e_type type() const {return t_eph::SBAS;} 388 388 virtual unsigned int IOD() const; 389 virtual unsigned int isUnhealthy() const { return static_cast<unsigned int>(_health); }389 virtual unsigned int isUnhealthy() const; 390 390 virtual QString toString(double version) const; 391 391
Note:
See TracChangeset
for help on using the changeset viewer.