From b947802289c1250bca30b109a400650fef7898b2 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Sat, 9 Jul 2011 18:36:42 +0000 Subject: [PATCH] Removed unused code from SDP4 calc --- SGP4.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/SGP4.cpp b/SGP4.cpp index 126b31c..95aa02f 100755 --- a/SGP4.cpp +++ b/SGP4.cpp @@ -277,6 +277,7 @@ void SGP4::FindPositionSDP4(Eci* eci, double tsince) const { a = pow(kXKE / xn, kTWOTHIRD) * pow(tempa, 2.0); e -= tempe; + double xmam = xmdf + RecoveredMeanMotion() * templ; /* * fix tolerance for error recognition @@ -290,17 +291,6 @@ void SGP4::FindPositionSDP4(Eci* eci, double tsince) const { if (e < 1.0e-6) e = 1.0e-6; - /* - xmdf += RecoveredMeanMotion() * templ; - double xlm = xmdf + omgadf + xnode; - xnode = fmod(xnode, TWOPI); - omgadf = fmod(omgadf, TWOPI); - xlm = fmod(xlm, TWOPI); - double xmam = fmod(xlm - omgadf - xnode, TWOPI); - */ - - double xmam = xmdf + RecoveredMeanMotion() * templ; - DeepSpacePeriodics(tsince, &e, &xincl, &omgadf, &xnode, &xmam); /*