Changeset 8307 in ntrip for branches/BNC_2.12/src/RTCM3


Ignore:
Timestamp:
Mar 23, 2018, 12:26:05 PM (7 years ago)
Author:
stuerze
Message:

consideration of DF range 0-63 for SSR Satellite IDs as defined in DF463, DF466 (first BDS or SBAS satellite is 0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/RTCM3/RTCM3coDecoder.cpp

    r8029 r8307  
    275275
    276276      t_orbCorr orbCorr;
    277       orbCorr._prn.set(sysCh, _clkOrb.Sat[ii].ID, flag);
     277      int satID = _clkOrb.Sat[ii].ID;
     278      if (sysCh == 'C' || sysCh == 'S') {
     279        satID++;// DF463 and DF466 with DF range 0-63, first satellite shall be 0
     280      }
     281      orbCorr._prn.set(sysCh, satID, flag);
    278282      orbCorr._staID     = _staID.toStdString();
    279283      orbCorr._iod       = _clkOrb.Sat[ii].IOD;
     
    309313
    310314      t_clkCorr clkCorr;
    311       clkCorr._prn.set(sysCh, _clkOrb.Sat[ii].ID, flag);
    312 
     315      int satID = _clkOrb.Sat[ii].ID;
     316      if (sysCh == 'C' || sysCh == 'S') {
     317        satID++;// DF463 and DF466 with DF range 0-63, first satellite shall be 0
     318      }
     319      clkCorr._prn.set(sysCh, satID, flag);
    313320      clkCorr._staID      = _staID.toStdString();
    314321      clkCorr._time       = _lastTime;
     
    386393    }
    387394    t_satCodeBias satCodeBias;
    388     satCodeBias._prn.set(sysCh, _codeBias.Sat[ii].ID);
     395    int satID = _codeBias.Sat[ii].ID;
     396    if (sysCh == 'C' || sysCh == 'S') {
     397      satID++;// DF463 and DF466 with DF range 0-63, first satellite shall be 0
     398    }
     399    satCodeBias._prn.set(sysCh, satID);
    389400    satCodeBias._staID     = _staID.toStdString();
    390401    satCodeBias._time      = _lastTime;
     
    439450    }
    440451    t_satPhaseBias satPhaseBias;
    441     satPhaseBias._prn.set(sysCh, _phaseBias.Sat[ii].ID);
     452    int satID = _phaseBias.Sat[ii].ID;
     453    if (sysCh == 'C' || sysCh == 'S') {
     454      satID++;// DF463 and DF466 with DF range 0-63, first satellite shall be 0
     455    }
     456    satPhaseBias._prn.set(sysCh, satID);
    442457    satPhaseBias._staID      = _staID.toStdString();
    443458    satPhaseBias._time       = _lastTime;
Note: See TracChangeset for help on using the changeset viewer.