From 4d7514ccb9ea189e833110c454a02269bba93f88 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 4 Jan 2012 22:49:34 +0000 Subject: [PATCH] More updating of sgp4 exceptions --- libsgp4/SGP4.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/libsgp4/SGP4.cpp b/libsgp4/SGP4.cpp index 4dc1bfe..04a70de 100644 --- a/libsgp4/SGP4.cpp +++ b/libsgp4/SGP4.cpp @@ -244,28 +244,13 @@ Eci SGP4::FindPositionSDP4(const Julian& dt, double tsince) const if (xn <= 0.0) { - throw SatelliteException("Error: #2 (xn <= 0.0)"); + throw SatelliteException("Error: (xn <= 0.0)"); } a = pow(kXKE / xn, kTWOTHIRD) * tempa * tempa; e -= tempe; double xmam = xmdf + elements_.RecoveredMeanMotion() * templ; - /* - * fix tolerance for error recognition - */ - if (e >= 1.0 || e < -0.001) - { - throw SatelliteException("Error: #1 (e >= 1.0 || e < -0.001)"); - } - /* - * fix tolerance to avoid a divide by zero - */ - if (e < 1.0e-6) - { - e = 1.0e-6; - } - DeepSpacePeriodics(tsince, &e, &xincl, &omgadf, &xnode, &xmam); /* @@ -523,7 +508,6 @@ Eci SGP4::CalculateFinalPositionVelocity(const Julian& dt, const double& e, if (pl < 0.0) { - //TODO: throw SatelliteException("Error: (pl < 0.0)"); }