Changeset 3587 in ntrip
- Timestamp:
- Jan 16, 2012, 6:36:31 PM (13 years ago)
- Location:
- trunk/BNC/upload
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/upload/bncrtnetuploadcaster.cpp
r3498 r3587 45 45 QString intr = settings.value("uploadIntr").toString(); 46 46 int sampl = settings.value("uploadSampl").toInt(); 47 _samplOrb = settings.value("uploadSamplOrb").toDouble(); 47 48 48 49 // Raw Output … … 161 162 } 162 163 else if (_crdTrafo == "Custom") { 163 bncSettings settings;164 164 _dx = settings.value("trafo_dx").toDouble(); 165 165 _dy = settings.value("trafo_dy").toDouble(); … … 353 353 QByteArray hlpBufferCo; 354 354 355 const double ORBIT_RATE = 0.0;356 357 355 // Orbit and Clock Corrections together 358 356 // ------------------------------------ 359 if ( ORBIT_RATE== 0.0) {357 if (_samplOrb == 0.0) { 360 358 if (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) { 361 359 char obuffer[CLOCKORBIT_BUFFERSIZE]; … … 372 370 if (co.NumberOfGPSSat > 0) { 373 371 char obuffer[CLOCKORBIT_BUFFERSIZE]; 374 if (fmod(epoTime.gpssec(), ORBIT_RATE) == 0.0) {372 if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) { 375 373 int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 0, obuffer, sizeof(obuffer)); 376 374 if (len1 > 0) { … … 385 383 if (co.NumberOfGLONASSSat > 0) { 386 384 char obuffer[CLOCKORBIT_BUFFERSIZE]; 387 if (fmod(epoTime.gpssec(), ORBIT_RATE) == 0.0) {385 if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) { 388 386 int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 0, obuffer, sizeof(obuffer)); 389 387 if (len1 > 0) { -
trunk/BNC/upload/bncrtnetuploadcaster.h
r3233 r3587 40 40 QString _crdTrafo; 41 41 bool _CoM; 42 double _samplOrb; 42 43 double _dx; 43 44 double _dy;
Note:
See TracChangeset
for help on using the changeset viewer.