- Timestamp:
- Nov 23, 2013, 6:26:06 PM (11 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncpppclient.cpp
r5565 r5566 295 295 } 296 296 cc->readLine(line); 297 checkProviderID(cc); 297 298 _corr_tt = cc->tClk; 298 299 } … … 527 528 } 528 529 } 530 531 // 532 //////////////////////////////////////////////////////////////////////////// 533 void bncPPPclient::checkProviderID(const t_corr* corr) { 534 535 bool alreadySet = false; 536 bool different = false; 537 538 for (unsigned ii = 0; ii < 3; ii++) { 539 if (_providerID.streamID[ii] != -1) { 540 alreadySet = true; 541 } 542 if (_providerID.streamID[ii] != corr->streamID[ii]) { 543 different = true; 544 } 545 _providerID.streamID[ii] = corr->streamID[ii]; 546 } 547 548 if (alreadySet && different) { 549 _providerID.reset = true; 550 } 551 } -
trunk/BNC/src/bncpppclient.h
r4784 r5566 153 153 }; 154 154 155 class t_providerID { 156 public: 157 t_providerID() { 158 streamID[0] = -1; 159 streamID[1] = -1; 160 streamID[2] = -1; 161 reset = false; 162 } 163 int streamID[3]; 164 bool reset; 165 }; 166 155 167 t_irc getSatPos(const bncTime& tt, const QString& prn, 156 168 ColumnVector& xc, ColumnVector& vv); … … 158 170 void processFrontEpoch(); 159 171 t_irc cmpToT(t_satData* satData); 172 void checkProviderID(const t_corr* corr); 160 173 161 174 t_pppOpt* _opt; … … 168 181 bncModel* _model; 169 182 QMap<QString, slipInfo> _slips; 183 t_providerID _providerID; 170 184 }; 171 185
Note:
See TracChangeset
for help on using the changeset viewer.