aded time range to voyager rotations; disabled spice exceptions by default; updated space module to read spiceexpection value;

This commit is contained in:
Micah
2020-06-05 16:42:31 -04:00
parent 9c2b5eefb2
commit f82a0d14ad
4 changed files with 20 additions and 3 deletions

View File

@@ -61,7 +61,12 @@ local Voyager1 = {
Rotation = {
Type = "SpiceRotation",
SourceFrame = "VG1_SC_BUS",
DestinationFrame = "GALACTIC"
DestinationFrame = "GALACTIC",
TimeFrame = {
Type = "TimeFrameInterval",
Start = "1977-SEP-05 14:10:11.786",
End = "2027-DEC-27"
}
}
},
GUI = {

View File

@@ -64,7 +64,12 @@ local Voyager2 = {
Rotation = {
Type = "SpiceRotation",
SourceFrame = "VG2_SC_BUS",
DestinationFrame = "GALACTIC"
DestinationFrame = "GALACTIC",
TimeFrame = {
Type = "TimeFrameInterval",
Start = "1977-AUG-20 16:07:06.535",
End = "2027-DEC-27"
}
}
},
GUI = {

View File

@@ -68,7 +68,7 @@ SpaceModule::SpaceModule()
addProperty(_showSpiceExceptions);
}
void SpaceModule::internalInitialize(const ghoul::Dictionary&) {
void SpaceModule::internalInitialize(const ghoul::Dictionary& dictionary) {
FactoryManager::ref().addFactory(
std::make_unique<ghoul::TemplateFactory<planetgeometry::PlanetGeometry>>(),
"PlanetGeometry"
@@ -106,6 +106,10 @@ void SpaceModule::internalInitialize(const ghoul::Dictionary&) {
auto fGeometry = FactoryManager::ref().factory<planetgeometry::PlanetGeometry>();
ghoul_assert(fGeometry, "Planet geometry factory was not created");
fGeometry->registerClass<planetgeometry::SimpleSphereGeometry>("SimpleSphere");
if (dictionary.hasKeyAndValue<bool>(SpiceExceptionInfo.identifier)) {
_showSpiceExceptions = dictionary.value<bool>(SpiceExceptionInfo.identifier);
}
}
void SpaceModule::internalDeinitializeGL() {

View File

@@ -144,6 +144,9 @@ ModuleConfigurations = {
-- GuiScale = 2.0,
Enabled = true,
Visible = true
},
Space = {
ShowExceptions = false
}
}