Rename variables for SGP4 part of FindPosition

feature/19
Daniel Warner 2011-03-28 14:00:56 +01:00
parent ebc5015eac
commit a12f6396e9
1 changed files with 4 additions and 4 deletions

View File

@ -261,9 +261,9 @@ void SGDP4::FindPosition(double tsince) {
if (!i_use_simple_model_) { if (!i_use_simple_model_) {
double delomg = i_omgcof_ * tsince; double delomg = i_omgcof_ * tsince;
double delm = i_xmcof_ * (pow(1.0 + i_eta_ * cos(xmdf), 3.0) - i_delmo_); double delm = i_xmcof_ * (pow(1.0 + i_eta_ * cos(xmdf), 3.0) - i_delmo_);
double temp1 = delomg + delm; temp = delomg + delm;
xmp = xmdf + temp1; xmp = xmdf + temp;
tsince_arg_perigee -= temp1; tsince_arg_perigee -= temp;
double tcube = tsq * tsince; double tcube = tsq * tsince;
double tfour = tsince * tcube; double tfour = tsince * tcube;
tempa -= i_d2_ * tsq - i_d3_ * tcube - i_d4_ * tfour; tempa -= i_d2_ * tsq - i_d3_ * tcube - i_d4_ * tfour;
@ -271,7 +271,7 @@ void SGDP4::FindPosition(double tsince) {
templ += i_t3cof_ * tcube + tfour * (i_t4cof_ + tsince * i_t5cof_); templ += i_t3cof_ * tcube + tfour * (i_t4cof_ + tsince * i_t5cof_);
} }
a = RecoveredSemiMajorAxis() * pow(tempa, 2.0); a = RecoveredSemiMajorAxis() * pow(tempa, 2.0);
tsince_eccentricity = Eccentricity() - tempe; tsince_eccentricity -= tempe;
xl = xmp + tsince_arg_perigee + xnode + RecoveredMeanMotion() * templ; xl = xmp + tsince_arg_perigee + xnode + RecoveredMeanMotion() * templ;
} }