mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-01 09:10:18 -06:00
* Initial commit of satellites test branch * Modified code to work with batch TLE files from online links specified in .mod file. Does not yet auto-download the files. * Added debug function to mod file for testing static points in orbit * Fixed time offset bug that was corrupting satellite positions * Minor changes for debug output and camera position. * Changed to circle billboard for rendering satellite position * Added satellite group name to each renderable title, and keyboard shortcuts for toggling visibility * Added support for using ghoul luasocket lib to download latest satellite TLE files from celestrak.com * Adding reference to updated Ghoul submodule containing luasocket changes * Updating reference to latest Ghoul submodule in feature/satellites * Updated reference to new ghoul version * Updated reference to new ghoul submodule version for satellites * Updated reference to new ghoul submodule version for satellits * Updated versions of TLE files * Added new Lua-accessible downloader available for scene loading * Improved error handling for TLE files * Updated submodule reference for ext/ghoul prior to luasocket addition * Update SGCT reference
23 lines
851 B
Lua
23 lines
851 B
Lua
--[[ OpenSpace keybinding script loaded from the satellites.scene file ]]--
|
|
|
|
-- Load the common helper functions
|
|
dofile(openspace.absPath('${SCRIPTS}/common.lua'))
|
|
dofile(openspace.absPath('${SCRIPTS}/bind_common_keys.lua'))
|
|
|
|
-- Set focuses
|
|
|
|
openspace.bindKey(
|
|
"p" ,
|
|
"if gpsVis then gpsVis = false; else gpsVis = true; end; openspace.setPropertyValue('gps-ops*.renderable.enabled', not gpsVis)",
|
|
"Toggles visibility of gps satellites."
|
|
)
|
|
openspace.bindKey(
|
|
"s" ,
|
|
"if stVis then stVis = false; else stVis = true; end; openspace.setPropertyValue('station*.renderable.enabled', not stVis)",
|
|
"Toggles visibility of stations."
|
|
)
|
|
openspace.bindKey(
|
|
"g" ,
|
|
"if geoVis then geoVis = false; else geoVis = true; end; openspace.setPropertyValue('geo*.renderable.enabled', not geoVis)",
|
|
"Toggles visibility of geostationary."
|
|
) |