Change name from co-rotating to co-revolving

This commit is contained in:
Malin E
2022-08-17 09:26:21 +02:00
parent 08fa825381
commit 44aa45d36f
4 changed files with 21 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ local toggle_trail = {
local launchTrail = "JWSTTrailLaunch"
local cruiseTrail = "JWSTTrailCruise"
local coRotOrbitTrail = "JWSTTrailCoRotOrbit"
local coRevOrbitTrail = "JWSTTrailCoRevOrbit"
local visibility
if is_declared("args") then
@@ -31,7 +31,7 @@ local toggle_trail = {
visibility = not (
openspace.getPropertyValue("Scene." .. launchTrail .. ".Renderable.Enabled") or
openspace.getPropertyValue("Scene." .. cruiseTrail .. ".Renderable.Enabled") or
openspace.getPropertyValue("Scene." .. coRotOrbitTrail .. ".Renderable.Enabled")
openspace.getPropertyValue("Scene." .. coRevOrbitTrail .. ".Renderable.Enabled")
)
end
@@ -44,7 +44,7 @@ local toggle_trail = {
visibility
)
openspace.setPropertyValueSingle(
"Scene." .. coRotOrbitTrail .. ".Renderable.Enabled",
"Scene." .. coRevOrbitTrail .. ".Renderable.Enabled",
visibility
)
]],

View File

@@ -114,11 +114,11 @@ local JWSTTrailOrbit = {
}
}
-- Trail of JWST in orbit around L2 that co-rotates with L2 around the Sun
-- Trail of JWST in orbit around L2 that co-revolves with L2 around the Sun
-- This gives the trail a look of a wheel going along L2 around the Sun
local JWSTTrailCoRotOrbit = {
Identifier = "JWSTTrailCoRotOrbit",
Parent = transforms.L2CoRotFrame.Identifier,
local JWSTTrailCoRevOrbit = {
Identifier = "JWSTTrailCoRevOrbit",
Parent = transforms.L2CoRevFrame.Identifier,
TimeFrame = {
Type = "TimeFrameInterval",
Start = L2orbitInsertionTime,
@@ -130,7 +130,7 @@ local JWSTTrailCoRotOrbit = {
Type = 'SpiceTranslation',
Target = 170, -- JWST
Observer = 392, -- L2
Frame = 'L2_COROT',
Frame = 'L2_COREV',
Kernels = { kernels .. "webb.bsp" }
},
Color = { 1.0, 0.663, 0.157 },
@@ -138,10 +138,10 @@ local JWSTTrailCoRotOrbit = {
Resolution = 365 -- About a sample rate of once per day
},
GUI = {
Name = "JWST L2 Co-rotating Orbit Trail",
Name = "JWST L2 Co-revolving Orbit Trail",
Path = "/Solar System/Missions/JWST/Trails",
Description = [[
James Webb Space Telescope Orbit Trail that Co-rotates with L2.
James Webb Space Telescope Orbit Trail that Co-revolves with L2.
]],
}
}
@@ -180,13 +180,13 @@ asset.onInitialize(function()
openspace.addSceneGraphNode(JWSTTrailLaunch)
openspace.addSceneGraphNode(JWSTTrailCruise)
openspace.addSceneGraphNode(JWSTTrailOrbit)
openspace.addSceneGraphNode(JWSTTrailCoRotOrbit)
openspace.addSceneGraphNode(JWSTTrailCoRevOrbit)
openspace.addSceneGraphNode(JWSTSunTrail)
end)
asset.onDeinitialize(function()
openspace.removeSceneGraphNode(JWSTSunTrail)
openspace.removeSceneGraphNode(JWSTTrailCoRotOrbit)
openspace.removeSceneGraphNode(JWSTTrailCoRevOrbit)
openspace.removeSceneGraphNode(JWSTTrailOrbit)
openspace.removeSceneGraphNode(JWSTTrailCruise)
openspace.removeSceneGraphNode(JWSTTrailLaunch)
@@ -195,7 +195,7 @@ end)
asset.export(JWSTTrailLaunch)
asset.export(JWSTTrailCruise)
asset.export(JWSTTrailOrbit)
asset.export(JWSTTrailCoRotOrbit)
asset.export(JWSTTrailCoRevOrbit)
asset.export(JWSTSunTrail)

View File

@@ -34,25 +34,25 @@ local L2Position = {
}
}
-- This ref. frame co-rotates with L2 and is needed for a more intuitive trail of JWST in
-- This ref. frame co-revolves with L2 and is needed for a more intuitive trail of JWST in
-- relation to L2
local L2CoRotFrame = {
Identifier = "L2CoRotFrame",
local L2CoRevFrame = {
Identifier = "L2CoRevFrame",
Parent = L2Position.Identifier,
Transform = {
Rotation = {
Type = "SpiceRotation",
SourceFrame = "L2_COROT",
SourceFrame = "L2_COREV",
DestinationFrame = 'GALACTIC',
Kernels = {
kernels .. "L2_de431.bsp",
kernels .. "L2_corot.tf"
kernels .. "L2_corev.tf"
}
}
},
Tag = { "lagrange_points_earth", "lagrange_points_earth_l2" },
GUI = {
Name = "L2 Co-rotating Reference Frame",
Name = "L2 Co-revolving Reference Frame",
Path = "/Solar System/Planets/Earth/Lagrange points",
Hidden = true
}
@@ -155,7 +155,7 @@ local L2SunLine = {
local nodes = {
L2Position,
L2CoRotFrame,
L2CoRevFrame,
L2Small,
L2,
L2SunLine,

View File

@@ -78,7 +78,7 @@
"identifier": "profile.toggle.jwst_trails",
"is_local": false,
"name": "Toggle JWST trail",
"script": "local list = {'Scene.JWSTTrailLaunch.Renderable.Enabled', 'Scene.JWSTTrailCruise.Renderable.Enabled', 'Scene.JWSTTrailCoRotOrbit.Renderable.Enabled'}; for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)); end"
"script": "local list = {'Scene.JWSTTrailLaunch.Renderable.Enabled', 'Scene.JWSTTrailCruise.Renderable.Enabled', 'Scene.JWSTTrailCoRevOrbit.Renderable.Enabled'}; for _,v in pairs(list) do openspace.setPropertyValueSingle(v, not openspace.getPropertyValue(v)); end"
}
],
"additional_scripts": [