Changeset 6602 in ntrip for trunk/BNC/src/ephemeris.cpp


Ignore:
Timestamp:
Feb 20, 2015, 10:57:31 AM (9 years ago)
Author:
stuerze
Message:

some more renaming

File:
1 edited

Legend:

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

    r6601 r6602  
    15251525  }
    15261526
    1527   static const double gmCompass    = 398.6004418e12;
    1528   static const double omegaCompass = 7292115.0000e-11;
     1527  static const double gmBDS    = 398.6004418e12;
     1528  static const double omegaBDS = 7292115.0000e-11;
    15291529
    15301530  xc[0] = xc[1] = xc[2] = xc[3] = 0.0;
     
    15381538  double a0 = _sqrt_A * _sqrt_A;
    15391539
    1540   double n0 = sqrt(gmCompass/(a0*a0*a0));
     1540  double n0 = sqrt(gmBDS/(a0*a0*a0));
    15411541  double tk = tt - _TOE;
    15421542  double n  = n0 + _Delta_n;
     
    15751575  // ------------------
    15761576  if (_i0 > iMaxGEO) {
    1577     double OM = _OMEGA0 + (_OMEGADOT - omegaCompass)*tk - omegaCompass*toesec;
     1577    double OM = _OMEGA0 + (_OMEGADOT - omegaBDS)*tk - omegaBDS*toesec;
    15781578
    15791579    sinom = sin(OM);
     
    15901590  // -------------
    15911591  else {
    1592     double OM    = _OMEGA0 + _OMEGADOT*tk - omegaCompass*toesec;
    1593     double ll    = omegaCompass*tk;
     1592    double OM    = _OMEGA0 + _OMEGADOT*tk - omegaBDS*toesec;
     1593    double ll    = omegaBDS*tk;
    15941594
    15951595    sinom = sin(OM);
Note: See TracChangeset for help on using the changeset viewer.