diff --git a/SGP4.cpp b/SGP4.cpp index 31cc052..fb9f4d4 100644 --- a/SGP4.cpp +++ b/SGP4.cpp @@ -43,7 +43,8 @@ #define THDT (4.37526908801129966e-3) SGP4::SGP4(void) { - first_run_ = true; + + Reset(); } SGP4::~SGP4(void) { @@ -54,7 +55,7 @@ void SGP4::SetTle(const Tle& tle) { /* * reset all constants etc */ - ResetGlobalVariables(); + Reset(); /* * extract and format tle data @@ -1241,7 +1242,7 @@ void SGP4::DeepSpaceIntegrator(const double delt, const double step2, d_atime_ += delt; } -void SGP4::ResetGlobalVariables() { +void SGP4::Reset() { /* * common variables diff --git a/SGP4.h b/SGP4.h index 2f6c9c6..8a433ab 100644 --- a/SGP4.h +++ b/SGP4.h @@ -119,7 +119,7 @@ private: void DeepSpaceCalcDotTerms(double* xndot, double* xnddt, double* xldot) const; void DeepSpaceIntegrator(const double delt, const double step2, const double xndot, const double xnddt, const double xldot)const; - void ResetGlobalVariables(); + void Reset(); bool first_run_; bool use_simple_model_;