Fixed readTLE

This commit is contained in:
Jonathan Fransson
2019-04-09 15:27:52 -06:00
committed by ElonOlsson
parent 0d838c2160
commit fc4f3fc6e9
7 changed files with 286 additions and 250 deletions
+4 -2
View File
@@ -21,7 +21,7 @@
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE *
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
****************************************************************************************/
/*
#include <modules/space/rendering/elonstest.h>
#include <ghoul/logging/logmanager.h>
@@ -628,6 +628,7 @@ namespace openspace {
// );
// // KeplerTranslation keplerTranslation(orbit);
// const double period = orbit.period();
for (size_t i = 0; i <= _nSegments; ++i) {
size_t index = orbitIndex * nVerticesPerOrbit + i;
@@ -636,7 +637,7 @@ namespace openspace {
// positionAtTime.time = Time(orbit.epoch + timeOffset);
glm::vec3 position = calculatePosition(Time(orbit.epoch + timeOffset), orbit.epoch);
// glm::vec3 position = calculatePosition(Time(orbit.epoch + timeOffset), orbit.epoch);
_vertexBufferData[index].x = position.x;
_vertexBufferData[index].y = position.y;
@@ -683,3 +684,4 @@ namespace openspace {
}
}
*/