Satellite decayed exception

feature/19
Daniel Warner 2011-03-27 13:20:47 +01:00
parent 3c9eb74680
commit 9dfe22060b
1 changed files with 4 additions and 0 deletions

View File

@ -379,6 +379,10 @@ void SGDP4::FindPosition(double tsince) {
rdotk = rdot - xn * temp2 * x1mth2_ * sin2u;
rfdotk = rfdot + xn * temp2 * (x1mth2_ * cos2u + 1.5 * x3thm1_);
}
if (rk < 0.0) {
throw new SatelliteException("Error: satellite decayed (rk < 0.0)");
}
/*
* orientation vectors
*/