Removed unused variable first_run_
parent
3926116d8e
commit
ff63560ed9
15
SGP4.cpp
15
SGP4.cpp
|
@ -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;
|
||||
|
||||
|
@ -1084,7 +1071,6 @@ void SGP4::DeepSpacePeriodics(const double& t, double* em,
|
|||
(*omgasm) = xls - (*xll) - cosis * (*xnodes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* deep space secular effects
|
||||
|
@ -1259,7 +1245,6 @@ void SGP4::Reset()
|
|||
/*
|
||||
* common variables
|
||||
*/
|
||||
first_run_ = true;
|
||||
use_simple_model_ = false;
|
||||
use_deep_space_ = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue