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


Ignore:
Timestamp:
Jun 11, 2018, 11:39:18 AM (5 months ago)
Author:
stuerze
Message:

small bug fixes in 'reqc' ephemeris check

File:
1 edited

Legend:

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

    r8218 r8370  
    335335  double E  = M;
    336336  double E_last;
     337  int    nLoop = 0;
    337338  do {
    338339    E_last = E;
    339340    E = M + _e*sin(E);
     341   
     342    if (++nLoop == 100) {
     343      return failure;
     344    }
    340345  } while ( fabs(E-E_last)*a0 > 0.001 );
    341346  double v      = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) );
     
    921926  double E  = M;
    922927  double E_last;
     928  int    nLoop = 0;
    923929  do {
    924930    E_last = E;
    925931    E = M + _e*sin(E);
     932
     933    if (++nLoop == 100) {
     934      return failure;
     935    }
    926936  } while ( fabs(E-E_last)*a0 > 0.001 );
    927937  double v      = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) );
Note: See TracChangeset for help on using the changeset viewer.