Added possible fix from dundee code

feature/19
Daniel Warner 2011-03-30 15:35:38 +01:00
parent c6c5f451e7
commit 3647405bca
1 changed files with 9 additions and 0 deletions

View File

@ -287,6 +287,15 @@ void SGDP4::FindPositionSDP4(double tsince) {
DeepPeriodics(tsince, e, xinc, omgadf, xnode, xmam);
/*
* TODO: is this needed
*/
if (xinc < 0.0) {
xinc = -xinc;
xnode += Globals::PI();
omgadf -= Globals::PI();
}
xl = xmam + omgadf + xnode;
xincl = xinc;
omega = omgadf;