Skip to content

Commit

Permalink
fix: 🐛 correct bug in deep space math
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Aug 8, 2022
1 parent 6c8358b commit c7ec9ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sgp4/sgp4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,10 +1527,11 @@ class Sgp4 {
d3222 * Math.cos(-xomi + xli - g32) +
d5220 * Math.cos(xomi + xli - g52) +
d5232 * Math.cos(-xomi + xli - g52) +
2.0 * d4410 * Math.cos(x2omi + x2li - g44) +
d4422 * Math.cos(x2li - g44) +
d5421 * Math.cos(xomi + x2li - g54) +
d5433 * Math.cos(-xomi + x2li - g54);
2.0 *
(d4410 * Math.cos(x2omi + x2li - g44) +
d4422 * Math.cos(x2li - g44) +
d5421 * Math.cos(xomi + x2li - g54) +
d5433 * Math.cos(-xomi + x2li - g54));
xnddt *= xldot;
}

Expand Down

0 comments on commit c7ec9ca

Please sign in to comment.