Ignore:
Timestamp:
Sep 30, 2026, 11:30:26 AM (3 days ago)
Author:
stuerze
Message:

bug fixes resulting from overall tests

File:
1 edited

Legend:

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

    r10994 r11057  
    350350    memset(&co, 0, sizeof(co));
    351351    co.EpochTime[CLOCKORBIT_SATGPS] = static_cast<int>(epoTime.gpssec());
    352     double gt = epoTime.gpssec() - gnumleap(year, month, day);
    353     if (_ssrFormat == "RTCM-SSR") {
    354         gt += 3 * 3600;
    355     }
    356     co.EpochTime[CLOCKORBIT_SATGLONASS] = static_cast<int>(fmod(gt, 86400.0));
     352    if (_ssrFormat == "IGS-SSR") {
     353      // SSR Epoch Time (IDF003) in one continuous time scale for all GNSS:
     354      // GPS seconds of week also for GLONASS and BDS (IGS SSR v1.00)
     355      co.EpochTime[CLOCKORBIT_SATGLONASS] = static_cast<int>(epoTime.gpssec());
     356      co.EpochTime[CLOCKORBIT_SATBDS] = static_cast<int>(epoTime.gpssec());
     357    }
     358    else {
     359      // RTCM-SSR (old and new): GLONASS Epoch Time DF386, seconds since the
     360      // beginning of the GLONASS day (GLONASS time = UTC(SU) + 3h)
     361      double gt = epoTime.gpssec() - gnumleap(year, month, day) + 3 * 3600;
     362      co.EpochTime[CLOCKORBIT_SATGLONASS] = static_cast<int>(fmod(gt, 86400.0));
     363      co.EpochTime[CLOCKORBIT_SATBDS] = static_cast<int>(epoTime.bdssec());
     364    }
    357365    co.EpochTime[CLOCKORBIT_SATGALILEO] = static_cast<int>(epoTime.gpssec());
    358366    co.EpochTime[CLOCKORBIT_SATQZSS] = static_cast<int>(epoTime.gpssec());
    359367    co.EpochTime[CLOCKORBIT_SATSBAS] = static_cast<int>(epoTime.gpssec());
    360     co.EpochTime[CLOCKORBIT_SATBDS] = static_cast<int>(epoTime.bdssec());
    361368    co.Supplied[_ssrCorr->COBOFS_CLOCK] = 1;
    362369    co.Supplied[_ssrCorr->COBOFS_ORBIT] = 1;
Note: See TracChangeset for help on using the changeset viewer.