Changeset 8541 in ntrip for branches/BNC_2.12/src/ephemeris.cpp


Ignore:
Timestamp:
Nov 15, 2018, 11:14:49 AM (5 years ago)
Author:
stuerze
Message:

minor changes to consider a satellite clock drift that is introduced via RTNET format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/ephemeris.cpp

    r8497 r8541  
    6565                                                 << 900 << 1800 << 3600 << 7200
    6666                                                 << 10800;
    67   xc.ReSize(7);
     67  xc.ReSize(6);
    6868  vv.ReSize(3);
    6969  if (position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()) != success) {
     
    320320  static const double gmGRS      = 398.6005e12;
    321321
    322   memset(xc, 0, 7*sizeof(double));
     322  memset(xc, 0, 6*sizeof(double));
    323323  memset(vv, 0, 3*sizeof(double));
    324324
     
    368368  double tc = tt - _TOC;
    369369  xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc;
    370 
    371   xc[4] = _clock_bias;
    372   xc[5] = _clock_drift;
    373   xc[6] = _clock_driftrate;
    374370
    375371  // Velocity
     
    402398  xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c;
    403399
     400  xc[4] = _clock_drift + _clock_driftrate*tc;
     401  xc[5] = _clock_driftrate;
     402
    404403  return success;
    405404}
     
    618617  static const double nominalStep = 10.0;
    619618
    620   memset(xc, 0, 7*sizeof(double));
     619  memset(xc, 0, 6*sizeof(double));
    621620  memset(vv, 0, 3*sizeof(double));
    622621
     
    655654  xc[3] = -_tau + _gamma * dtClk;
    656655
    657   xc[4] = -_tau;
    658   xc[5] = _gamma;
    659   xc[6] = 0.0;
     656  xc[4] = _gamma;
     657  xc[5] = 0.0;
    660658
    661659  return success;
     
    922920  static const double gmWGS = 398.6004418e12;
    923921
    924   memset(xc, 0, 7*sizeof(double));
     922  memset(xc, 0, 6*sizeof(double));
    925923  memset(vv, 0, 3*sizeof(double));
    926924
     
    970968  double tc = tt - _TOC;
    971969  xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc;
    972 
    973   xc[4] = _clock_bias;
    974   xc[5] = _clock_drift;
    975   xc[6] = _clock_driftrate;
    976970
    977971  // Velocity
     
    10061000  //xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c;
    10071001
     1002  xc[4] = _clock_drift + _clock_driftrate*tc;
     1003  xc[5] = _clock_driftrate;
     1004
    10081005  return success;
    10091006}
     
    13171314  xc[3] = _agf0 + _agf1 * dt;
    13181315
    1319   xc[4] = _agf0;
    1320   xc[5] = _agf1;
    1321   xc[6] = 0.0;
     1316  xc[4] = _agf1;
     1317  xc[5] = 0.0;
    13221318
    13231319  return success;
     
    16981694  xc[3] = _clock_bias + _clock_drift*tc + _clock_driftrate*tc*tc;
    16991695
    1700   xc[4] = _clock_bias;
    1701   xc[5] = _clock_drift;
    1702   xc[6] = _clock_driftrate;
    1703 
    17041696  // dotC  = _clock_drift + _clock_driftrate*tc
    17051697  //       - 4.442807633e-10*_e*sqrt(a0)*cos(E) * dEdM * n;
     
    17081700  // -----------------------
    17091701  // correspondent to BDS ICD and to SSR standard
    1710     xc[3] -= 4.442807633e-10 * _e * sqrt(a0) *sin(E);
     1702  xc[3] -= 4.442807633e-10 * _e * sqrt(a0) *sin(E);
    17111703  // correspondent to IGS convention
    17121704  // xc[3] -= 2.0 * (xc[0]*vv[0] + xc[1]*vv[1] + xc[2]*vv[2]) / t_CST::c / t_CST::c;
     1705
     1706  xc[4] = _clock_drift + _clock_driftrate*tc;
     1707  xc[5] = _clock_driftrate;
    17131708
    17141709  return success;
Note: See TracChangeset for help on using the changeset viewer.