Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latitude, Longitude and Altitude are now passed back from the sgp4 functions #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Alex-developer
Copy link

This has required changing the time parameter passed to the function
from the minutes since epoch to the julian date the position information
is required for.

This has required changing the time parameter passed to the function
from the minutes since epoch to the julian date the position information
is required for.
@Alex-developer
Copy link
Author

I forgot to do the non wegl version and can't create another pull request. so the changes are ...

index_crippled.js

MINUS jdSat = new Cesium.JulianDate.fromTotalDays(satrecs[satnum].jdsatepoch);
MINUS minutesSinceEpoch = jdSat.getMinutesDifference(julianDate);
MINUS rets = sgp4(satrecs[satnum], minutesSinceEpoch);
ADD jdSat = new Cesium.JulianDate();
ADD var time = jdSat.getJulianDayNumber() + jdSat.getJulianTimeFraction();
ADD rets = sgp4(satrecs[satnum], time);

MINUS newRow.insertCell(-1).appendChild(document.createTextNode(Cesium.Math.toDegrees(carto.latitude).toFixed(3)));
MINUS newRow.insertCell(-1).appendChild(document.createTextNode(Cesium.Math.toDegrees(carto.longitude).toFixed(3)));
MINUS newRow.insertCell(-1).appendChild(document.createTextNode(carto.height.toFixed(0)));
ADD newRow.insertCell(-1).appendChild(document.createTextNode(satrecs[satnum].lat.toFixed(3)));
ADD newRow.insertCell(-1).appendChild(document.createTextNode(satrecs[satnum].lon.toFixed(3)));
ADD newRow.insertCell(-1).appendChild(document.createTextNode(satrecs[satnum].alt.toFixed(3)));

not_supported.html

ADD script type="text/javascript" src="../js/post.js"></script>
ADD script type="text/javascript" src="../js/math_utils.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant