- Timestamp:
- Jun 29, 2018, 1:21:43 PM (6 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppEphPool.cpp
r8215 r8401 82 82 ///////////////////////////////////////////////////////////////////////////// 83 83 void t_pppEphPool::t_satEphPool::putOrbCorrection(t_orbCorr* corr) { 84 if (_ephs.empty()) { 85 return; 86 } 87 84 88 for (unsigned ii = 0; ii < _ephs.size(); ii++) { 85 89 t_eph* eph = _ephs[ii]; … … 94 98 ///////////////////////////////////////////////////////////////////////////// 95 99 void t_pppEphPool::t_satEphPool::putClkCorrection(t_clkCorr* corr) { 100 if (_ephs.empty()) { 101 return; 102 } 103 96 104 for (unsigned ii = 0; ii < _ephs.size(); ii++) { 97 105 t_eph* eph = _ephs[ii]; … … 107 115 t_irc t_pppEphPool::t_satEphPool::getCrd(const bncTime& tt, ColumnVector& xc, 108 116 ColumnVector& vv) const { 117 if (_ephs.empty()) { 118 return failure; 119 } 120 109 121 for (unsigned ii = 0; ii < _ephs.size(); ii++) { 110 122 t_eph* eph = _ephs[ii]; … … 126 138 ///////////////////////////////////////////////////////////////////////////// 127 139 int t_pppEphPool::t_satEphPool::getChannel() const { 128 if ( _ephs.size() > 0) {140 if (!_ephs.empty()) { 129 141 return _ephs[0]->slotNum(); 130 142 } -
trunk/BNC/src/PPP/pppEphPool.h
r7237 r8401 14 14 _maxQueueSize = maxQueueSize; 15 15 } 16 ~t_pppEphPool() {}; 16 ~t_pppEphPool() {}; 17 17 18 18 void putEphemeris(t_eph* eph); … … 20 20 void putClkCorrection(t_clkCorr* corr); 21 21 22 t_irc getCrd(const t_prn& prn, const bncTime& tt, 22 t_irc getCrd(const t_prn& prn, const bncTime& tt, 23 23 ColumnVector& xc, ColumnVector& vv) const; 24 24 … … 35 35 t_satEphPool() {}; 36 36 ~t_satEphPool() { 37 if (_ephs.empty()) return; 37 38 for (unsigned ii = 0; ii < _ephs.size(); ii++) { 38 39 delete _ephs[ii]; … … 42 43 void putOrbCorrection(t_orbCorr* corr); 43 44 void putClkCorrection(t_clkCorr* corr); 44 t_irc getCrd(const bncTime& tt, 45 t_irc getCrd(const bncTime& tt, 45 46 ColumnVector& xc, ColumnVector& vv) const; 46 47 int getChannel() const;
Note:
See TracChangeset
for help on using the changeset viewer.