Changeset 6802 in ntrip


Ignore:
Timestamp:
Apr 29, 2015, 1:47:04 PM (9 years ago)
Author:
stuerze
Message:

some missing bits added

File:
1 edited

Legend:

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

    r6801 r6802  
    923923        }
    924924        // Bit 1-2
    925         _E1_bHS = double((int(SVhealth) >> 1) & 0x2);
     925        _E1_bHS = double((int(SVhealth) >> 1) & 0x3);
    926926        // Bit 3
    927927        if (int(SVhealth) & (1<<3)) {
     
    929929        }
    930930        // Bit 4-5
    931         _E5aHS = double((int(SVhealth) >> 4) & 0x2);
     931        _E5aHS = double((int(SVhealth) >> 4) & 0x3);
    932932        // Bit 6
    933933        if (int(SVhealth) & (1<<6)) {
     
    935935        }
    936936        // Bit 7-8
    937         _E5bHS = double((int(SVhealth) >> 7) & 0x2);
     937        _E5bHS = double((int(SVhealth) >> 7) & 0x3);
    938938      }
    939939    }
     
    11511151  else if ((_flags & GALEPHF_INAV) == GALEPHF_INAV) {
    11521152    dataSource |= (1<<0);
    1153     dataSource |= (1<<1);// not clear but common practice
     1153    dataSource |= (1<<1);// not clear but seems to be common in practice
    11541154    dataSource |= (1<<2);
    11551155    dataSource |= (1<<9);
     
    11701170      SVhealth |= (1<<2);
    11711171    }
     1172    //   Bit 3  : E5a DVS
     1173    if ((_flags & GALEPHF_E5ADINVALID) == GALEPHF_E5ADINVALID) {
     1174      SVhealth |= (1<<3);
     1175    }
     1176    //   Bit 4-5: E5a HS
     1177    if      (_E5aHS == 1.0) {
     1178      SVhealth |= (1<<4);
     1179    }
     1180    else if (_E5aHS == 2.0) {
     1181      SVhealth |= (1<<5);
     1182    }
     1183    else if (_E5aHS  == 3.0) {
     1184      SVhealth |= (1<<4);
     1185      SVhealth |= (1<<5);
     1186    }
    11721187    //   Bit 6  : E5b DVS
    1173     if ((_flags & GALEPHF_E1DINVALID) == GALEPHF_E1DINVALID) {
     1188    if ((_flags & GALEPHF_E5BDINVALID) == GALEPHF_E5BDINVALID) {
    11741189      SVhealth |= (1<<6);
    11751190    }
Note: See TracChangeset for help on using the changeset viewer.