Changeset 10224 in ntrip


Ignore:
Timestamp:
Oct 13, 2023, 11:49:42 AM (7 months ago)
Author:
stuerze
Message:

bug fixed

Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h

    r9518 r10224  
    1616#include <math.h>
    1717#include "t_prn.h"
     18#include "bncutils.h"
    1819
    1920enum IGS_NUMBERS {
     
    422423#define STARTDATA \
    423424  size_t ressize=0; \
    424   char *blockstart; \
    425   int numbits; \
     425  char *blockstart=0; \
     426  int numbits=0; \
    426427  uint64_t bitbuffer=0;
    427428
     
    518519#define T_VTEC_QUALITY_INDICATOR(a)      SCALEADDBITS( 9,       20.0, a) /* DF478, IDF041 */
    519520
    520 static uint32_t CRC24(long size, const unsigned char *buf) {
    521   uint32_t crc = 0;
    522   int ii;
    523   while (size--) {
    524     crc ^= (*buf++) << (16);
    525     for (ii = 0; ii < 8; ii++)  {
    526       crc <<= 1;
    527       if (crc & 0x1000000)
    528         crc ^= 0x01864cfb;
    529     }
    530   }
    531   return crc;
    532 }
    533 
    534521static double URAToValue(int ura) {
    535522  int urac, urav;
  • trunk/BNC/src/combination/bnccomb.cpp

    r10221 r10224  
    625625  corr->_orbCorr._xr    += dRAO;
    626626  corr->_orbCorr._dotXr += dDotRAO;
    627   corr->_clkCorr._dClk  -= dC;
     627  corr->_clkCorr->_dClk  -= dC;
    628628}
    629629
     
    633633
    634634  for (unsigned ii = 0; ii < clkCorrVec.size(); ii++) {
    635     const t_clkCorr* clkCorr = clkCorrVec.at(ii);
     635    t_clkCorr* clkCorr = clkCorrVec.at(ii);
    636636    QString    staID(clkCorr->_staID.c_str());
    637637    QString    prn(clkCorr->_prn.toInternalString().c_str());
     
    660660    newCorr->_acName       = acName;
    661661    newCorr->_weightFactor = weigthFactor;
    662     newCorr->_clkCorr      = t_clkCorr(static_cast<t_clkCorr>(*clkCorr));
     662    newCorr->_clkCorr      = clkCorr;
    663663
    664664    // Check orbit correction
     
    784784    QTextStream out(&_log, QIODevice::WriteOnly);
    785785    processSystem(epoTime, sys, out);
     786    _buffer.remove(sys);
    786787    emit newMessage(_log, false);
    787788  }
     
    893894  }
    894895
    895   _buffer.remove(sys);
     896  //_buffer.remove(sys);
    896897}
    897898
     
    10451046
    10461047    // CLOCK
    1047     t_clkCorr clkCorr(corr->_clkCorr);
     1048    t_clkCorr clkCorr(static_cast<t_clkCorr>(*corr->_clkCorr));
    10481049    clkCorr._staID      = "INTERNAL";
    10491050    clkCorr._dClk       = corr->_dClkResult;
     
    11851186    }
    11861187
    1187     ll(iObs) = (corr->_clkCorr._dClk * t_CST::c - corr->_satCodeBiasIF) - DotProduct(AA.Row(iObs), x0);
     1188    ll(iObs) = (corr->_clkCorr->_dClk * t_CST::c - corr->_satCodeBiasIF) - DotProduct(AA.Row(iObs), x0);
    11881189
    11891190    PP(iObs, iObs) *= 1.0 / (corr->_weightFactor * corr->_weightFactor);
  • trunk/BNC/src/combination/bnccomb.h

    r10216 r10224  
    9999    cmbCorr() {
    100100      _eph                        = 0;
     101      _clkCorr                    = 0;
    101102      _iod                        = 0;
    102103      _dClkResult                 = 0.0;
     
    104105      _weightFactor               = 1.0;
    105106    }
    106     ~cmbCorr() {}
     107    ~cmbCorr() {
     108
     109    }
    107110    QString        _prn;
    108111    bncTime        _time;
     
    110113    t_eph*         _eph;
    111114    t_orbCorr      _orbCorr;
    112     t_clkCorr      _clkCorr;
     115    t_clkCorr*     _clkCorr;
    113116    t_satCodeBias  _satCodeBias;
    114117    QString        _acName;
Note: See TracChangeset for help on using the changeset viewer.