Changeset 6351 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Nov 26, 2014, 6:34:14 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

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

    r6349 r6351  
    190190
    191191    sp3Sat->_xyz *= 1.e3;
    192     sp3Sat->_clk *= t_CST::c * 1.e-6;
     192    if (sp3Sat->_clk == 999999.999999) {
     193      sp3Sat->_clkValid = false;
     194      sp3Sat->_clk      = 0.0;
     195    }
     196    else {
     197      sp3Sat->_clkValid = true;
     198      sp3Sat->_clk *= t_CST::c * 1.e-6;
     199    }
    193200
    194201    _currEpoch->_sp3Sat.push_back(sp3Sat);
  • trunk/BNC/src/bncsp3.h

    r6347 r6351  
    1717    t_sp3Sat() {
    1818      _xyz.ReSize(3);
    19       _xyz = 0.0;
    20       _clk = 0.0;
     19      _xyz      = 0.0;
     20      _clk      = 0.0;
     21      _clkValid = false;
    2122    }
    2223    ~t_sp3Sat() {}
     
    2425    ColumnVector _xyz;
    2526    double       _clk;
     27    bool         _clkValid;
    2628  };
    2729
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r6350 r6351  
    216216              epo->_dr[sat1->_prn]  = sat1->_xyz - sat2->_xyz;
    217217              epo->_xyz[sat1->_prn] = sat1->_xyz;
    218               if (true) {  //// TODO: check whether clocks set in SP3 files
     218              if (sat1->_clkValid && sat2->_clkValid) {
    219219                epo->_dc[sat1->_prn] = sat1->_clk - sat2->_clk;
    220220                clkSats.insert(sat1->_prn);
Note: See TracChangeset for help on using the changeset viewer.