From a8b25f89c5f89787ffd3ce91844527591f807bf4 Mon Sep 17 00:00:00 2001 From: Daniel Warner Date: Wed, 30 Mar 2011 01:04:20 +0100 Subject: [PATCH] Changed declaration of DeepSecular() --- SGDP4.cpp | 18 +++++------------- SGDP4.h | 3 ++- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/SGDP4.cpp b/SGDP4.cpp index f1c28ce..59f1d1c 100644 --- a/SGDP4.cpp +++ b/SGDP4.cpp @@ -275,7 +275,9 @@ void SGDP4::FindPositionSDP4(double tsince) { double xinc = Inclination(); double xn = RecoveredMeanMotion(); #if 0 - DeepSecular(xmdf, omgadf, xnode, em, xinc, xn, tsince); + DeepSecular(tsince, xll, omgasm, + xnodes, em, xinc, xn); + //DeepSecular(xmdf, omgadf, xnode, em, xinc, xn, tsince); a = pow(constants_.XKE / xn, constants_.TWOTHRD) * pow(tempa, 2.0); xn = constants_.XKE / pow(a, 1.5); @@ -1002,19 +1004,9 @@ void SGDP4::DeepPeriodics(const double& t, double& em, * deep space secular effects ENTRY DPSEC(XLL,OMGASM,XNODES,EM,XINC,XN,T) */ -void SGDP4::DeepSecular() { +void SGDP4::DeepSecular(const double& t, double& xll, double& omgasm, + double& xnodes, double& em, double& xinc, double& xn) { #if 0 - /* - * passed in - */ - double xll; - double omgasm; - double xnodes; - double em; - double xinc; - double xn; - double t; - double xldot = 0.0; diff --git a/SGDP4.h b/SGDP4.h index bc86285..8285d5b 100644 --- a/SGDP4.h +++ b/SGDP4.h @@ -25,7 +25,8 @@ private: const double& xmdot, const double& omgdot, const double& xnodot); void DeepPeriodics(const double& t, double& em, double& xinc, double& omgasm, double& xnodes, double& xll); - void DeepSecular(); + void DeepSecular(const double& t, double& xll, double& omgasm, + double& xnodes, double& em, double& xinc, double& xn); void FindPositionSDP4(double tsince); void FindPositionSGP4(double tsince); void CalculateFinalPositionVelocity(const double& tsince, const double& e,