Removed -= and *=

feature/19
Daniel Warner 2011-04-02 13:32:09 +01:00
parent d24d064920
commit 18de6eb3ab
3 changed files with 10 additions and 10 deletions

View File

@ -173,7 +173,7 @@ time_t Julian::ToTime() const {
// the fractional portion of day.
int nDOM = (int) dblDay;
dblDay -= nDOM;
dblDay = dblDay - nDOM;
const int SEC_PER_MIN = 60;
const int SEC_PER_HR = 60 * SEC_PER_MIN;
@ -202,7 +202,7 @@ time_t Julian::ToTime() const {
// Valid time_t value returned from mktime().
// mktime() expects a local time which means that tEpoch now needs
// to be adjusted by the difference between this time zone and GMT.
// tEpoch -= _timezone;
// tEpoch = tEpoch - _timezone;
}
return tEpoch;

View File

@ -284,7 +284,7 @@ void SGDP4::FindPositionSDP4(Eci& eci, double tsince) {
}
a = pow(constants_.XKE / xn, constants_.TWOTHRD) * pow(tempa, 2.0);
e -= tempe;
e = e - tempe;
/*
* fix tolerance for error recognition
@ -318,7 +318,7 @@ void SGDP4::FindPositionSDP4(Eci& eci, double tsince) {
if (xincl < 0.0) {
xincl = -xincl;
xnode += Globals::PI();
omgadf -= Globals::PI();
omgadf = omgadf - Globals::PI();
}
xl = xmam + omgadf + xnode;
@ -394,12 +394,12 @@ void SGDP4::FindPositionSGP4(Eci& eci, double tsince) const {
const double temp = delomg + delm;
xmp += temp;
omega -= temp;
omega = omega - temp;
const double tcube = tsq * tsince;
const double tfour = tsince * tcube;
tempa -= i_d2_ * tsq - i_d3_ * tcube - i_d4_ * tfour;
tempa = tempa - i_d2_ * tsq - i_d3_ * tcube - i_d4_ * tfour;
tempe += BStar() * i_c5_ * (sin(xmp) - i_sinmo_);
templ += i_t3cof_ * tcube + tfour * (i_t4cof_ + tsince * i_t5cof_);
}
@ -1049,7 +1049,7 @@ void SGDP4::DeepSpacePeriodics(const double& t, double& em,
if (xnodes < oldxnodes)
xnodes += Globals::TWOPI();
else
xnodes -= Globals::TWOPI();
xnodes = xnodes - Globals::TWOPI();
}
xll += pl;
@ -1188,7 +1188,7 @@ void SGDP4::DeepSpaceCalcDotTerms(double& xndot, double& xnddt, double& xldot) c
}
xldot = d_xni_ + d_xfact_;
xnddt *= xldot;
xnddt = xnddt * xldot;
}
/*