- Timestamp:
- Feb 24, 2011, 11:11:07 AM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3coDecoder.cpp
r3022 r3024 208 208 209 209 QStringList asciiLines = corrsToASCIIlines(GPSweek, _GPSweeks, 210 _co, _bias);210 _co, &_bias); 211 211 212 212 long coTime = GPSweek * 7*24*3600 + long(floor(_GPSweeks+0.5)); … … 246 246 QStringList RTCM3coDecoder::corrsToASCIIlines(int GPSweek, double GPSweeks, 247 247 const ClockOrbit& co, 248 const Bias &bias) {248 const Bias* bias) { 249 249 250 250 QStringList retLines; … … 266 266 sysCh = 'R'; 267 267 } 268 268 269 if (sysCh != ' ') { 269 270 … … 350 351 // Loop over all satellites (GPS and Glonass) 351 352 // ------------------------------------------ 352 if (bias.NumberOfGPSSat > 0 || bias.NumberOfGLONASSSat > 0) { 353 QString line1; 354 line1.sprintf("! Biases: %d GPS %d Glonass", 355 bias.NumberOfGPSSat, bias.NumberOfGLONASSSat); 356 retLines << line1; 357 } 358 for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias.NumberOfGLONASSSat; ii++) { 359 char sysCh = ' '; 360 int messageType; 361 if (ii < bias.NumberOfGPSSat) { 362 sysCh = 'G'; 363 messageType = BTYPE_GPS; 364 } 365 else if (ii >= CLOCKORBIT_NUMGPS) { 366 sysCh = 'R'; 367 messageType = BTYPE_GLONASS; 368 } 369 if (sysCh != ' ') { 370 QString line; 371 line.sprintf("%d %d %d %.1f %c%2.2d %d", 372 messageType, bias.UpdateInterval, GPSweek, GPSweeks, 373 sysCh, bias.Sat[ii].ID, 374 bias.Sat[ii].NumberOfCodeBiases); 375 for (int jj = 0; jj < bias.Sat[ii].NumberOfCodeBiases; jj++) { 376 QString hlp; 377 hlp.sprintf(" %d %8.3f", bias.Sat[ii].Biases[jj].Type, 378 bias.Sat[ii].Biases[jj].Bias); 379 line += hlp; 380 } 381 retLines << line; 353 if (bias) { 354 if (bias->NumberOfGPSSat > 0 || bias->NumberOfGLONASSSat > 0) { 355 QString line1; 356 line1.sprintf("! Biases: %d GPS %d Glonass", 357 bias->NumberOfGPSSat, bias->NumberOfGLONASSSat); 358 retLines << line1; 359 } 360 for (int ii = 0; ii < CLOCKORBIT_NUMGPS + bias->NumberOfGLONASSSat; ii++) { 361 char sysCh = ' '; 362 int messageType; 363 if (ii < bias->NumberOfGPSSat) { 364 sysCh = 'G'; 365 messageType = BTYPE_GPS; 366 } 367 else if (ii >= CLOCKORBIT_NUMGPS) { 368 sysCh = 'R'; 369 messageType = BTYPE_GLONASS; 370 } 371 if (sysCh != ' ') { 372 QString line; 373 line.sprintf("%d %d %d %.1f %c%2.2d %d", 374 messageType, bias->UpdateInterval, GPSweek, GPSweeks, 375 sysCh, bias->Sat[ii].ID, 376 bias->Sat[ii].NumberOfCodeBiases); 377 for (int jj = 0; jj < bias->Sat[ii].NumberOfCodeBiases; jj++) { 378 QString hlp; 379 hlp.sprintf(" %d %8.3f", bias->Sat[ii].Biases[jj].Type, 380 bias->Sat[ii].Biases[jj].Bias); 381 line += hlp; 382 } 383 retLines << line; 384 } 382 385 } 383 386 } -
trunk/BNC/RTCM3/RTCM3coDecoder.h
r3022 r3024 46 46 47 47 static QStringList corrsToASCIIlines(int GPSweek, double GPSweeks, 48 const ClockOrbit& co, const Bias & _bias);48 const ClockOrbit& co, const Bias* bias); 49 49 50 50 signals: -
trunk/BNC/combination/bnccomb.cpp
r3016 r3024 333 333 } 334 334 } 335 336 co.messageType = COTYPE_GPSCOMBINED; 337 338 QStringList asciiLines = 339 RTCM3coDecoder::corrsToASCIIlines(resTime.gpsw(), resTime.gpssec(), co, 0); 340 341 QStringListIterator il(asciiLines); 342 while (il.hasNext()) { 343 QString line = il.next(); 344 cout << line.toAscii().data() << endl; 345 } 335 346 } 336 347 -
trunk/BNC/combination/bnccomb.h
r3015 r3024 34 34 signals: 35 35 void newMessage(QByteArray msg, bool showOnScreen); 36 void newCorrLine(QString line, QString staID, long coTime); 36 37 37 38 private:
Note:
See TracChangeset
for help on using the changeset viewer.