Removed unused variable first_run_

feature/19
Daniel Warner 2011-12-18 10:38:15 +00:00
parent 3926116d8e
commit ff63560ed9
2 changed files with 68 additions and 84 deletions

View File

@ -181,8 +181,6 @@ void SGP4::Initialise()
c1sq * (2.0 * nearspace_consts_.d2 + c1sq));
}
}
first_run_ = false;
}
Eci SGP4::FindPosition(double tsince) const
@ -936,10 +934,6 @@ void SGP4::DeepSpaceCalculateLunarSolarTerms(const double t, double* pe, double*
* calculate solar terms for time t
*/
double zm = deepspace_consts_.zmos + ZNS * t;
if (first_run_)
{
zm = deepspace_consts_.zmos;
}
double zf = zm + 2.0 * ZES * sin(zm);
double sinzf = sin(zf);
double f2 = 0.5 * sinzf * sinzf - 0.25;
@ -954,11 +948,6 @@ void SGP4::DeepSpaceCalculateLunarSolarTerms(const double t, double* pe, double*
* calculate lunar terms for time t
*/
zm = deepspace_consts_.zmol + ZNL * t;
if (first_run_)
{
zm = deepspace_consts_.zmol;
}
zf = zm + 2.0 * ZEL * sin(zm);
sinzf = sin(zf);
f2 = 0.5 * sinzf * sinzf - 0.25;
@ -999,8 +988,6 @@ void SGP4::DeepSpacePeriodics(const double& t, double* em,
*/
DeepSpaceCalculateLunarSolarTerms(t, &pe, &pinc, &pl, &pgh, &ph);
if (!first_run_)
{
(*xinc) += pinc;
(*em) += pe;
@ -1083,7 +1070,6 @@ void SGP4::DeepSpacePeriodics(const double& t, double* em,
(*xll) += pl;
(*omgasm) = xls - (*xll) - cosis * (*xnodes);
}
}
}
/*
@ -1259,7 +1245,6 @@ void SGP4::Reset()
/*
* common variables
*/
first_run_ = true;
use_simple_model_ = false;
use_deep_space_ = false;
}

1
SGP4.h
View File

@ -226,7 +226,6 @@ private:
/*
* flags
*/
bool first_run_;
bool use_simple_model_;
bool use_deep_space_;