Changeset 2208 in ntrip
- Timestamp:
- Jan 7, 2010, 11:14:44 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2207 r2208 234 234 in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2]; 235 235 cc->dClk /= t_CST::c; 236 cc->raoSet = true; 237 cc->dClkSet = true; 236 238 } 237 239 else if ( messageType == COTYPE_GPSORBIT || … … 239 241 cc->rao.ReSize(3); 240 242 in >> cc->iod >> cc->rao[0] >> cc->rao[1] >> cc->rao[2]; 243 cc->raoSet = true; 241 244 } 242 245 else if ( messageType == COTYPE_GPSCLOCK || … … 245 248 in >> dummyIOD >> cc->dClk; 246 249 cc->dClk /= t_CST::c; 247 } 250 cc->dClkSet = true; 251 } 252 } 253 } 254 255 QMutableMapIterator<QString, t_corr*> im(_corr); 256 while (im.hasNext()) { 257 im.next(); 258 t_corr* cc = im.value(); 259 if (!cc->ready()) { 260 delete cc; 261 im.remove(); 248 262 } 249 263 } -
trunk/BNC/bncpppclient.h
r2182 r2208 74 74 class t_corr { 75 75 public: 76 t_corr() { 77 raoSet = false; 78 dClkSet = false; 79 } 80 bool ready() {return raoSet && dClkSet;} 76 81 bncTime tt; 77 82 int iod; 78 83 double dClk; 79 84 ColumnVector rao; 85 bool raoSet; 86 bool dClkSet; 80 87 }; 81 88
Note:
See TracChangeset
for help on using the changeset viewer.