Astronomy
The Astronomy Plugin is a component of the KeepTrack application that allows users to view stars and constellations from the perspective of a selected ground-based sensor.
Features
- Switch to an astronomy-focused camera mode
- Draw constellations when a star manager is loaded
- Clear orbits and change the legend to astronomy mode
- Integrate with other KeepTrack components for a seamless experience
User Interface
The plugin adds the following UI elements:
- An “Astronomy View” icon in the bottom menu for quick access
- The icon is initially disabled until a sensor is selected
Usage
- Select a sensor using the Sensor List Plugin
- Click the “Astronomy View” icon in the bottom menu
- The view will switch to astronomy mode, showing stars and constellations
- Click the icon again to return to the default view
Integration with KeepTrack
The Astronomy Plugin integrates with several KeepTrack components:
- CatalogManager: Checks if the star manager is loaded
- OrbitManager: Clears in-view orbits when entering astronomy mode
- DrawManager: Reinitializes GL context when exiting astronomy mode
- UiManager: Hides side menus when exiting astronomy mode
- MainCamera: Switches between astronomy and default camera modes
- StarManager: Draws or clears constellations
- LegendManager: Changes the legend to astronomy or default mode
Development
When extending or modifying the Astronomy Plugin, consider the following:
- The plugin follows the KeepTrackPlugin architecture
- It registers an event handler for the
setSensor
event to enable/disable the bottom icon - The plugin interacts with various KeepTrack managers and components
Code Configuration
The plugin supports the following configuration options:
bottomIconElementName
: The HTML element ID for the bottom iconbottomIconLabel
: The label text for the bottom iconbottomIconImg
: The image source for the bottom iconisIconDisabledOnLoad
: Determines if the icon is initially disabled (default: true)
Troubleshooting
- If the astronomy view is not displaying correctly, ensure that a sensor is selected
- Check if the star manager is loaded for constellation display
- Verify that the required KeepTrack components (CatalogManager, OrbitManager, etc.) are properly initialized