Changeset 9774 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jun 23, 2022, 2:58:19 PM (22 months ago)
Author:
stuerze
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ephemeris.cpp

    r9765 r9774  
    164164        break;
    165165      case D1:
    166         navTypeString = epochStart + ephStr + "D1" + eolStr;
     166        navTypeString = epochStart + ephStr + "D1  " + eolStr;
    167167        break;
    168168      case D2:
    169         navTypeString = epochStart + ephStr + "D2" + eolStr;
     169        navTypeString = epochStart + ephStr + "D2  " + eolStr;
    170170        break;
    171171      case SBASL1:
     
    15301530}
    15311531
     1532// Health status of SBAS Ephemeris (virtual)
     1533////////////////////////////////////////////////////////////////////////////
     1534unsigned 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
    15321558// RINEX Format String
    15331559//////////////////////////////////////////////////////////////////////////////
  • trunk/BNC/src/ephemeris.h

    r9765 r9774  
    387387  virtual e_type  type() const {return t_eph::SBAS;}
    388388  virtual unsigned int IOD() const;
    389   virtual unsigned int  isUnhealthy() const { return static_cast<unsigned int>(_health); }
     389  virtual unsigned int  isUnhealthy() const;
    390390  virtual QString toString(double version) const;
    391391
Note: See TracChangeset for help on using the changeset viewer.