mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-07 04:49:00 -06:00
work on renderablesatellites
This commit is contained in:
committed by
ElonOlsson
parent
52174666fc
commit
01fefeca23
Submodule ext/ghoul updated: 9045871f1e...a257709d73
@@ -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
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user