Changeset 2911 in ntrip for trunk/BNC/bncpppclient.cpp
- Timestamp:
- Jan 27, 2011, 3:39:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2905 r2911 50 50 #include "bncsettings.h" 51 51 52 extern "C" {53 #include "clock_orbit_rtcm.h"54 }55 56 52 using namespace std; 57 53 … … 280 276 QListIterator<QString> it(corrList); 281 277 while (it.hasNext()) { 282 QTextStream in(it.next().toAscii()); 278 QString line = it.next(); 279 280 QTextStream in(&line); 283 281 int messageType; 284 282 int updateInterval; … … 288 286 in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn; 289 287 290 if ( messageType == COTYPE_GPSCOMBINED || 291 messageType == COTYPE_GLONASSCOMBINED || 292 messageType == COTYPE_GPSORBIT || 293 messageType == COTYPE_GPSCLOCK || 294 messageType == COTYPE_GLONASSORBIT || 295 messageType == COTYPE_GLONASSCLOCK ) { 296 288 if ( t_corr::relevantMessageType(messageType) ) { 297 289 t_corr* cc = 0; 298 290 if (_corr.contains(prn)) { … … 304 296 } 305 297 306 cc->tt.set(GPSweek, GPSweeks); 307 _corr_tt.set(GPSweek, GPSweeks); 308 309 if ( messageType == COTYPE_GPSCOMBINED || 310 messageType == COTYPE_GLONASSCOMBINED ) { 311 cc->rao.ReSize(3); cc->rao = 0.0; 312 cc->dotRao.ReSize(3); cc->dotRao = 0.0; 313 cc->dotDotRao.ReSize(3); cc->dotDotRao = 0.0; 314 cc->dClk = 0.0; 315 cc->dotDClk = 0.0; 316 cc->dotDotDClk = 0.0; 317 in >> cc->iod 318 >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2] 319 >> cc->dotDClk >> cc->dotRao[0] >> cc->dotRao[1] >> cc->dotRao[2] 320 >> cc->dotDotDClk >> cc->dotDotRao[0] >> cc->dotDotRao[1] >> cc->dotDotRao[2]; 321 cc->dClk /= t_CST::c; 322 cc->dotDClk /= t_CST::c; 323 cc->dotDotDClk /= t_CST::c; 324 cc->raoSet = true; 325 cc->dClkSet = true; 326 } 327 else if ( messageType == COTYPE_GPSORBIT || 328 messageType == COTYPE_GLONASSORBIT ) { 329 cc->rao.ReSize(3); cc->rao = 0.0; 330 cc->dotRao.ReSize(3); cc->dotRao = 0.0; 331 cc->dotDotRao.ReSize(3); cc->dotDotRao = 0.0; 332 in >> cc->iod 333 >> cc->rao[0] >> cc->rao[1] >> cc->rao[2] 334 >> cc->dotRao[0] >> cc->dotRao[1] >> cc->dotRao[2] 335 >> cc->dotDotRao[0] >> cc->dotDotRao[1] >> cc->dotDotRao[2]; 336 cc->raoSet = true; 337 } 338 else if ( messageType == COTYPE_GPSCLOCK || 339 messageType == COTYPE_GLONASSCLOCK ) { 340 int dummyIOD; 341 cc->dClk = 0.0; 342 cc->dotDClk = 0.0; 343 cc->dotDotDClk = 0.0; 344 in >> dummyIOD >> cc->dClk >> cc->dotDClk >> cc->dotDotDClk; 345 cc->dClk /= t_CST::c; 346 cc->dotDClk /= t_CST::c; 347 cc->dotDotDClk /= t_CST::c; 348 cc->dClkSet = true; 349 } 298 cc->readLine(line); 299 _corr_tt = cc->tt; 350 300 } 351 301 else if ( messageType == BTYPE_GPS ) {
Note:
See TracChangeset
for help on using the changeset viewer.