work on renderablesatellites

This commit is contained in:
Jonathan Fransson
2019-03-27 11:55:00 -06:00
committed by ElonOlsson
parent 52174666fc
commit 01fefeca23
2 changed files with 16 additions and 11 deletions

View File

@@ -40,6 +40,7 @@
#include <ghoul/filesystem/filesystem.h>
#include <ghoul/filesystem/file.h>
#include <ghoul/misc/csvreader.h>
#include <ghoul/opengl/programobject.h>
#include <fstream>
@@ -241,7 +242,10 @@ RenderableSatellites::RenderableSatellites(const ghoul::Dictionary& dictionary)
int lineNum = 1;
if (dictionary.hasKeyAndValue<double>(KeyLineNum)) {
lineNum = static_cast<int>(dictionary.value<double>(KeyLineNum));
<<<<<<< HEAD
}
=======
>>>>>>> work on renderablesatellites
readTLEFile(file, lineNum);
}
}
@@ -548,16 +552,17 @@ void RenderableSatellites::readTLEFile(const std::string& filename, int lineNum)
using namespace std::chrono;
double period = seconds(hours(24)).count() / keplerElements.meanMotion;
// setKeplerElements(
// keplerElements.eccentricity,
// keplerElements.semiMajorAxis,
// keplerElements.inclination,
// keplerElements.ascendingNode,
// keplerElements.argumentOfPeriapsis,
// keplerElements.meanAnomaly,
// period,
// keplerElements.epoch
// );
setKeplerElements(
keplerElements.eccentricity,
keplerElements.semiMajorAxis,
keplerElements.inclination,
keplerElements.ascendingNode,
keplerElements.argumentOfPeriapsis,
keplerElements.meanAnomaly,
period,
keplerElements.epoch
);
}