Removed unused deep space global variables.

zmol changed to use d_zmol_
feature/19
Daniel Warner 2011-03-30 15:57:15 +01:00
parent 1d45476e73
commit 3c9845e34f
2 changed files with 3 additions and 18 deletions

View File

@ -602,7 +602,7 @@ void SGDP4::DeepSpaceInitialize(const double& eosq, const double& sinio, const d
/*
* initialize lunar / solar terms
*/
d_day_ = Epoch().FromJan1_12h_1900();
const double d_day_ = Epoch().FromJan1_12h_1900();
const double xnodce = 4.5236020 - 9.2422029e-4 * d_day_;
const double stem = sin(xnodce);
@ -613,7 +613,7 @@ void SGDP4::DeepSpaceInitialize(const double& eosq, const double& sinio, const d
const double zcoshl = sqrt(1.0 - zsinhl * zsinhl);
const double c = 4.7199672 + 0.22997150 * d_day_;
const double gam = 5.8351514 + 0.0019443680 * d_day_;
const double zmol = Globals::Fmod2p(c - gam);
d_zmol_ = Globals::Fmod2p(c - gam);
double zx = 0.39785416 * stem / zsinil;
double zy = zcoshl * ctem + 0.91744867 * zsinhl * stem;
/*
@ -747,7 +747,7 @@ void SGDP4::DeepSpaceInitialize(const double& eosq, const double& sinio, const d
zn = ZNL;
cc = C1L;
ze = ZEL;
zmo = zmol;
zmo = d_zmol_;
}

15
SGDP4.h
View File

@ -192,21 +192,6 @@ private:
bool d_resonance_flag_;
bool d_synchronous_flag_;
double d_day_;
double d_xnodce_;
double d_stem_;
double d_ctem_;
double d_zcosil_;
double d_zsinil_;
double d_zsinhl_;
double d_zcoshl_;
double d_c_;
double d_gam_;
double d_zx_;
double d_zy_;
double d_zcosgl_;
double d_zsingl_;
double d_zmol_;
double d_zmos_;