Changeset 10224 in ntrip for trunk/BNC/src
- Timestamp:
- Oct 13, 2023, 11:49:42 AM (14 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h
r9518 r10224 16 16 #include <math.h> 17 17 #include "t_prn.h" 18 #include "bncutils.h" 18 19 19 20 enum IGS_NUMBERS { … … 422 423 #define STARTDATA \ 423 424 size_t ressize=0; \ 424 char *blockstart ; \425 int numbits ; \425 char *blockstart=0; \ 426 int numbits=0; \ 426 427 uint64_t bitbuffer=0; 427 428 … … 518 519 #define T_VTEC_QUALITY_INDICATOR(a) SCALEADDBITS( 9, 20.0, a) /* DF478, IDF041 */ 519 520 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 534 521 static double URAToValue(int ura) { 535 522 int urac, urav; -
trunk/BNC/src/combination/bnccomb.cpp
r10221 r10224 625 625 corr->_orbCorr._xr += dRAO; 626 626 corr->_orbCorr._dotXr += dDotRAO; 627 corr->_clkCorr ._dClk -= dC;627 corr->_clkCorr->_dClk -= dC; 628 628 } 629 629 … … 633 633 634 634 for (unsigned ii = 0; ii < clkCorrVec.size(); ii++) { 635 constt_clkCorr* clkCorr = clkCorrVec.at(ii);635 t_clkCorr* clkCorr = clkCorrVec.at(ii); 636 636 QString staID(clkCorr->_staID.c_str()); 637 637 QString prn(clkCorr->_prn.toInternalString().c_str()); … … 660 660 newCorr->_acName = acName; 661 661 newCorr->_weightFactor = weigthFactor; 662 newCorr->_clkCorr = t_clkCorr(static_cast<t_clkCorr>(*clkCorr));662 newCorr->_clkCorr = clkCorr; 663 663 664 664 // Check orbit correction … … 784 784 QTextStream out(&_log, QIODevice::WriteOnly); 785 785 processSystem(epoTime, sys, out); 786 _buffer.remove(sys); 786 787 emit newMessage(_log, false); 787 788 } … … 893 894 } 894 895 895 _buffer.remove(sys);896 //_buffer.remove(sys); 896 897 } 897 898 … … 1045 1046 1046 1047 // CLOCK 1047 t_clkCorr clkCorr( corr->_clkCorr);1048 t_clkCorr clkCorr(static_cast<t_clkCorr>(*corr->_clkCorr)); 1048 1049 clkCorr._staID = "INTERNAL"; 1049 1050 clkCorr._dClk = corr->_dClkResult; … … 1185 1186 } 1186 1187 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); 1188 1189 1189 1190 PP(iObs, iObs) *= 1.0 / (corr->_weightFactor * corr->_weightFactor); -
trunk/BNC/src/combination/bnccomb.h
r10216 r10224 99 99 cmbCorr() { 100 100 _eph = 0; 101 _clkCorr = 0; 101 102 _iod = 0; 102 103 _dClkResult = 0.0; … … 104 105 _weightFactor = 1.0; 105 106 } 106 ~cmbCorr() {} 107 ~cmbCorr() { 108 109 } 107 110 QString _prn; 108 111 bncTime _time; … … 110 113 t_eph* _eph; 111 114 t_orbCorr _orbCorr; 112 t_clkCorr 115 t_clkCorr* _clkCorr; 113 116 t_satCodeBias _satCodeBias; 114 117 QString _acName;
Note:
See TracChangeset
for help on using the changeset viewer.