Changeset 8368 in ntrip for trunk/BNC/src/ephemeris.cpp
- Timestamp:
- Jun 11, 2018, 11:18:45 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r8217 r8368 335 335 double E = M; 336 336 double E_last; 337 int nLoop = 0; 337 338 do { 338 339 E_last = E; 339 340 E = M + _e*sin(E); 340 } while ( fabs(E-E_last)*a0 > 0.001 ); 341 342 if (++nLoop == 100) { 343 return failure; 344 } 345 } while ( fabs(E-E_last)*a0 > 0.001); 341 346 double v = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) ); 342 347 double u0 = v + _omega; … … 922 927 double E = M; 923 928 double E_last; 929 int nLoop = 0; 924 930 do { 925 931 E_last = E; 926 932 E = M + _e*sin(E); 933 934 if (++nLoop == 100) { 935 return failure; 936 } 927 937 } while ( fabs(E-E_last)*a0 > 0.001 ); 928 938 double v = 2.0*atan( sqrt( (1.0 + _e)/(1.0 - _e) )*tan( E/2 ) ); … … 1507 1517 1508 1518 return CRC24(size, startbuffer); 1519 1520 1509 1521 } 1510 1522
Note:
See TracChangeset
for help on using the changeset viewer.