Changeset 3587 in ntrip


Ignore:
Timestamp:
Jan 16, 2012, 6:36:31 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/upload
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncrtnetuploadcaster.cpp

    r3498 r3587  
    4545  QString     intr  = settings.value("uploadIntr").toString();
    4646  int         sampl = settings.value("uploadSampl").toInt();
     47  _samplOrb = settings.value("uploadSamplOrb").toDouble();
    4748
    4849  // Raw Output
     
    161162  }
    162163  else if (_crdTrafo == "Custom") {
    163     bncSettings settings;
    164164    _dx  = settings.value("trafo_dx").toDouble();
    165165    _dy  = settings.value("trafo_dy").toDouble();
     
    353353  QByteArray hlpBufferCo; 
    354354
    355   const double ORBIT_RATE = 0.0;
    356 
    357355  // Orbit and Clock Corrections together
    358356  // ------------------------------------
    359   if (ORBIT_RATE == 0.0) {
     357  if (_samplOrb == 0.0) {
    360358    if (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) {
    361359      char obuffer[CLOCKORBIT_BUFFERSIZE];
     
    372370    if (co.NumberOfGPSSat > 0) {
    373371      char obuffer[CLOCKORBIT_BUFFERSIZE];
    374       if (fmod(epoTime.gpssec(), ORBIT_RATE) == 0.0) {
     372      if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) {
    375373        int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 0, obuffer, sizeof(obuffer));
    376374        if (len1 > 0) {
     
    385383    if (co.NumberOfGLONASSSat > 0) {
    386384      char obuffer[CLOCKORBIT_BUFFERSIZE];
    387       if (fmod(epoTime.gpssec(), ORBIT_RATE) == 0.0) {
     385      if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) {
    388386        int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 0, obuffer, sizeof(obuffer));
    389387        if (len1 > 0) {
  • trunk/BNC/upload/bncrtnetuploadcaster.h

    r3233 r3587  
    4040  QString        _crdTrafo;
    4141  bool           _CoM;
     42  double         _samplOrb;
    4243  double         _dx;
    4344  double         _dy;
Note: See TracChangeset for help on using the changeset viewer.