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));
|
c1sq * (2.0 * nearspace_consts_.d2 + c1sq));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
first_run_ = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Eci SGP4::FindPosition(double tsince) const
|
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
|
* calculate solar terms for time t
|
||||||
*/
|
*/
|
||||||
double zm = deepspace_consts_.zmos + ZNS * t;
|
double zm = deepspace_consts_.zmos + ZNS * t;
|
||||||
if (first_run_)
|
|
||||||
{
|
|
||||||
zm = deepspace_consts_.zmos;
|
|
||||||
}
|
|
||||||
double zf = zm + 2.0 * ZES * sin(zm);
|
double zf = zm + 2.0 * ZES * sin(zm);
|
||||||
double sinzf = sin(zf);
|
double sinzf = sin(zf);
|
||||||
double f2 = 0.5 * sinzf * sinzf - 0.25;
|
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
|
* calculate lunar terms for time t
|
||||||
*/
|
*/
|
||||||
zm = deepspace_consts_.zmol + ZNL * t;
|
zm = deepspace_consts_.zmol + ZNL * t;
|
||||||
|
|
||||||
if (first_run_)
|
|
||||||
{
|
|
||||||
zm = deepspace_consts_.zmol;
|
|
||||||
}
|
|
||||||
zf = zm + 2.0 * ZEL * sin(zm);
|
zf = zm + 2.0 * ZEL * sin(zm);
|
||||||
sinzf = sin(zf);
|
sinzf = sin(zf);
|
||||||
f2 = 0.5 * sinzf * sinzf - 0.25;
|
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);
|
DeepSpaceCalculateLunarSolarTerms(t, &pe, &pinc, &pl, &pgh, &ph);
|
||||||
|
|
||||||
if (!first_run_)
|
|
||||||
{
|
|
||||||
(*xinc) += pinc;
|
(*xinc) += pinc;
|
||||||
(*em) += pe;
|
(*em) += pe;
|
||||||
|
|
||||||
|
@ -1084,7 +1071,6 @@ void SGP4::DeepSpacePeriodics(const double& t, double* em,
|
||||||
(*omgasm) = xls - (*xll) - cosis * (*xnodes);
|
(*omgasm) = xls - (*xll) - cosis * (*xnodes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* deep space secular effects
|
* deep space secular effects
|
||||||
|
@ -1259,7 +1245,6 @@ void SGP4::Reset()
|
||||||
/*
|
/*
|
||||||
* common variables
|
* common variables
|
||||||
*/
|
*/
|
||||||
first_run_ = true;
|
|
||||||
use_simple_model_ = false;
|
use_simple_model_ = false;
|
||||||
use_deep_space_ = false;
|
use_deep_space_ = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue