Sensor Info Plugin
The SensorInfoPlugin is a component of the KeepTrack application that provides detailed information about selected sensors used in space surveillance and tracking.
Features
- Displays detailed information about the selected sensor
- Allows drawing lines from the sensor to the Sun or Moon
- Integrates with other KeepTrack components like SoundManager and LineManager
User Interface
The plugin adds the following UI elements:
- A “Sensor Info” icon in the bottom menu for quick access
- A side menu with detailed sensor information
- Buttons to draw or remove lines to the Sun and Moon
Sensor Information Displayed
- Sensor Name
- Country
- Sensor Type
- Latitude and Longitude
- Azimuth range (minimum and maximum)
- Elevation range (minimum and maximum)
- Range (minimum and maximum)
- Frequency Band (for RF sensors)
- Beam Width (for RF sensors)
Usage
Viewing Sensor Info
- Select a sensor using the Sensor List Plugin
- Click the “Sensor Info” icon in the bottom menu
- View the detailed sensor information in the side menu
Drawing Lines
- Open the Sensor Info side menu
- Click “Draw Line to Sun” or “Draw Line to Moon”
- To remove the line, click the button again
Integration with KeepTrack
The SensorInfoPlugin integrates with several KeepTrack components:
- SoundManager: Plays sound effects for user interactions
- LineManager: Manages the lines drawn to the Sun and Moon
- SensorManager: Retrieves information about the current sensor
- UiManager: Displays toast notifications
- TimeManager: Gets the current simulation time
- Scene: Retrieves positions of the Sun and Moon
Development
When extending or modifying the SensorInfoPlugin, consider the following:
- The plugin follows the KeepTrackPlugin architecture
- It registers event handlers for UI interactions and line additions
- Sensor data is retrieved from the SensorManager
Code Configuration
The plugin supports the following configuration options:
isRequireSensorSelected
: Set totrue
by default, requires a sensor to be selected for the plugin to functionisIconDisabledOnLoad
: Set totrue
by default, the bottom icon is initially disableddragOptions
: Configures the draggability of the side menu
Troubleshooting
- If the sensor information doesn’t update, ensure that a sensor is selected using the Sensor List Plugin
- Check the browser console for any error messages
- Verify that the required KeepTrack components (SensorManager, LineManager, etc.) are properly initialized