Changeset 10993 in ntrip for trunk/BNC/src/satObs.cpp


Ignore:
Timestamp:
Aug 20, 2026, 3:23:19 PM (4 weeks ago)
Author:
stuerze
Message:

minor changes to allow different formulas for the computation of the relativistic effects in GPS position determination for RTCM-SSR and IGS-SSR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/satObs.cpp

    r10622 r10993  
    8686  _xr.ReSize(3);    _xr    = 0.0;
    8787  _dotXr.ReSize(3); _dotXr = 0.0;
     88  _rtcmSsr   = false;
    8889}
    8990
     
    111112         << setw(10) << setprecision(4) << corr._dotXr[0] * 1.e3 << ' '   // m/s => mm/s
    112113         << setw(10) << setprecision(4) << corr._dotXr[1] * 1.e3 << ' '   // m/s => mm/s
    113          << setw(10) << setprecision(4) << corr._dotXr[2] * 1.e3 << endl; // m/s => mm/s
     114         << setw(10) << setprecision(4) << corr._dotXr[2] * 1.e3 << ' '   // m/s => mm/s
     115         << (corr._rtcmSsr ? 1 : 0) << endl;
    114116  }
    115117  out->flush();
     
    148150    corr._dotXr[1] /= 1.e3; // mm/s => m/s
    149151    corr._dotXr[2] /= 1.e3; // mm/s => m/s
     152
     153    // Optional trailing column - absent in files written before this field
     154    // existed, in which case the source format is unknown and defaults to
     155    // the classic eccentricity-based relativistic correction.
     156    int rtcmSsrFlag = 0;
     157    if (in >> rtcmSsrFlag) {
     158      corr._rtcmSsr = (rtcmSsrFlag != 0);
     159    }
     160    else {
     161      corr._rtcmSsr = false;
     162    }
    150163
    151164    corrList.push_back(corr);
Note: See TracChangeset for help on using the changeset viewer.