Skip to content

Commit

Permalink
Fix to the orbit curve visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
vsr83 committed Feb 18, 2024
1 parent 409ceca commit 157fe2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,9 @@ function drawOrbit(today, matrix, kepler_updated, nutPar)
if (guiControls.source === "TLE")
{
const osvTeme = sgp4.propagateTargetTs(satrec, deltaDate, 0.0);
const posEci = osvTeme.r;
const velEci = osvTeme.v;
const osvJ2000 = sgp4.coordTemeJ2000(osvTeme, nutPar);
const posEci = osvJ2000.r;
const velEci = osvJ2000.v;
const osvPropJ2000 = {r : [posEci[0] * 1000.0, posEci[1] * 1000.0, posEci[2] * 1000.0],
v : [velEci[0], velEci[1], velEci[2]],
ts : deltaDate};
Expand Down

0 comments on commit 157fe2b

Please sign in to comment.