Changeset 5662 in ntrip for trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
- Timestamp:
- May 8, 2014, 3:22:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r5655 r5662 11 11 * Created: 29-Mar-2011 12 12 * 13 * Changes: 13 * Changes: 14 14 * 15 15 * -----------------------------------------------------------------------*/ 16 16 17 17 #include <math.h> 18 #include "bncrtnetuploadcaster.h" 18 #include "bncrtnetuploadcaster.h" 19 19 #include "bncsettings.h" 20 20 #include "bncephuser.h" … … 28 28 bncRtnetUploadCaster::bncRtnetUploadCaster(const QString& mountpoint, 29 29 const QString& outHost, int outPort, 30 const QString& password, 31 const QString& crdTrafo, bool CoM, 30 const QString& password, 31 const QString& crdTrafo, bool CoM, 32 32 const QString& sp3FileName, 33 33 const QString& rnxFileName, … … 156 156 _oyr = 0.000000; 157 157 _ozr = 0.000000; 158 _sc = 0.000;158 _sc = -1.000; 159 159 _scr = 0.000; 160 160 _t0 = 0000.0; … … 225 225 } 226 226 227 // 227 // 228 228 //////////////////////////////////////////////////////////////////////////// 229 229 void bncRtnetUploadCaster::decodeRtnetStream(char* buffer, int bufLen) { 230 230 231 231 QMutexLocker locker(&_mutex); 232 232 … … 274 274 bncTime epoTime; epoTime.set( year, month, day, hour, min, sec); 275 275 276 emit(newMessage("bncRtnetUploadCaster: decode " + 276 emit(newMessage("bncRtnetUploadCaster: decode " + 277 277 QByteArray(epoTime.datestr().c_str()) + " " + 278 QByteArray(epoTime.timestr().c_str()) + " " + 278 QByteArray(epoTime.timestr().c_str()) + " " + 279 279 _casterID.toAscii(), false)); 280 280 … … 290 290 co.SSRProviderID = _PID; // 256 .. BKG, 257 ... EUREF 291 291 co.SSRSolutionID = _SID; 292 292 293 293 struct Bias bias; 294 294 memset(&bias, 0, sizeof(bias)); 295 295 bias.GPSEpochTime = co.GPSEpochTime; 296 296 bias.GLONASSEpochTime = co.GLONASSEpochTime; 297 297 298 298 // Default Update Interval 299 299 // ----------------------- … … 332 332 333 333 for (int ii = 1; ii < lines.size(); ii++) { 334 334 335 335 QString prn; 336 336 ColumnVector rtnAPC; … … 338 338 ColumnVector rtnCoM; 339 339 double rtnClk; 340 340 341 341 QTextStream in(lines[ii].toAscii()); 342 342 … … 418 418 } 419 419 } 420 } 420 } 421 421 struct ClockOrbit::SatData* sd = 0; 422 422 if (prn[0] == 'G') { … … 430 430 if (sd) { 431 431 QString outLine; 432 processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prn, 432 processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prn, 433 433 rtnAPC, rtnClk, rtnVel, rtnCoM, sd, outLine); 434 434 } 435 435 436 436 struct Bias::BiasSat* biasSat = 0; 437 437 if (prn[0] == 'G') { … … 443 443 ++bias.NumberOfGLONASSSat; 444 444 } 445 445 446 446 // Code Biases 447 447 // ----------- … … 567 567 } 568 568 569 QByteArray hlpBufferCo; 569 QByteArray hlpBufferCo; 570 570 571 571 // Orbit and Clock Corrections together … … 616 616 } 617 617 } 618 618 619 619 // Biases 620 620 // ------ 621 QByteArray hlpBufferBias; 621 QByteArray hlpBufferBias; 622 622 if (bias.NumberOfGPSSat > 0 || bias.NumberOfGLONASSSat > 0) { 623 623 char obuffer[CLOCKORBIT_BUFFERSIZE]; … … 631 631 } 632 632 633 // 633 // 634 634 //////////////////////////////////////////////////////////////////////////// 635 void bncRtnetUploadCaster::processSatellite(t_eph* eph, int GPSweek, 635 void bncRtnetUploadCaster::processSatellite(t_eph* eph, int GPSweek, 636 636 double GPSweeks, const QString& prn, 637 637 const ColumnVector& rtnAPC, … … 647 647 ColumnVector vB(3); 648 648 eph->position(GPSweek, GPSweeks, xB.data(), vB.data()); 649 649 650 650 // Precise Position 651 651 // ---------------- 652 652 ColumnVector xP = _CoM ? rtnCoM : rtnAPC; 653 653 654 double dc = 0.0; 654 double dc = 0.0; 655 655 if (_crdTrafo != "IGS08") { 656 656 crdTrafo(GPSweek, xP, dc); 657 657 } 658 658 659 659 // Difference in xyz 660 660 // ----------------- 661 661 ColumnVector dx = xB.Rows(1,3) - xP; 662 662 ColumnVector dv = vB - rtnVel; 663 663 664 664 // Difference in RSW 665 665 // ----------------- … … 688 688 } 689 689 690 outLine.sprintf("%d %.1f %s %3d %10.3f %8.3f %8.3f %8.3f\n", 690 outLine.sprintf("%d %.1f %s %3d %10.3f %8.3f %8.3f %8.3f\n", 691 691 GPSweek, GPSweeks, eph->prn().toAscii().data(), 692 692 eph->IOD(), dClk, rsw(1), rsw(2), rsw(3)); … … 705 705 // Transform Coordinates 706 706 //////////////////////////////////////////////////////////////////////////// 707 void bncRtnetUploadCaster::crdTrafo(int GPSWeek, ColumnVector& xyz, 707 void bncRtnetUploadCaster::crdTrafo(int GPSWeek, ColumnVector& xyz, 708 708 double& dc) { 709 709
Note:
See TracChangeset
for help on using the changeset viewer.