Edit Sat
The Edit Sat Plugin is a component of the KeepTrack application that provides functionality for editing satellite data, including Two-Line Element sets (TLEs).
Features
- Edit satellite orbital parameters
- Update satellite epoch to current time
- Save and load TLE data
- Visualize changes in satellite orbit
- Integration with other KeepTrack components like SelectSatManager and OrbitManager
User Interface
The plugin adds the following UI elements:
- An “Edit Satellite” icon in the bottom menu for quick access
- A side menu with input fields for editing satellite parameters
- Buttons for updating, saving, and loading TLE data
- A right-click context menu option for editing satellites
Editable Satellite Information
- Satellite Number (SCC#)
- Epoch Year and Day
- Inclination
- Right Ascension of Ascending Node
- Eccentricity
- Argument of Perigee
- Mean Anomaly
- Mean Motion
- Period
Usage
Editing Satellite Data
- Select a satellite in the main view
- Click the “Edit Satellite” icon in the bottom menu
- Modify the desired parameters in the side menu
- Click “Update Satellite” to apply the changes
Updating Satellite Epoch
- Open the Edit Satellite menu
- Click “Update Epoch to Now”
- The satellite’s TLE will be updated with the current time while maintaining its position
Saving and Loading TLEs
- After editing a satellite, click “Save TLE” to download the TLE data
- To load a saved TLE, click “Load TLE” and select the file
Integration with KeepTrack
The Edit Sat Plugin integrates with several KeepTrack components:
- SelectSatManager: Manages the currently selected satellite
- OrbitManager: Updates orbit buffer data when changes are made
- CatalogManager: Handles satellite data and cruncher messages
- TimeManager: Provides current simulation time for epoch updates
- UiManager: Displays notifications and manages UI interactions
Development
When extending or modifying the Edit Sat Plugin, consider the following:
- The plugin follows the KeepTrackPlugin architecture
- It registers event handlers for UI interactions and satellite selection
- TLE generation and validation are handled by the FormatTle and Sgp4 classes
- The plugin uses the OrbitFinder class for updating satellite epochs
Code Configuration
The plugin supports the following configuration options:
isRequireSatelliteSelected
: Determines if a satellite must be selected for the plugin to functionisIconDisabled
: Controls whether the bottom icon is initially disableddragOptions
: Configuration for making the side menu draggable
Troubleshooting
- If satellite updates fail, check the browser console for error messages
- Ensure that the entered parameters are within valid ranges for TLEs
- For epoch update issues, verify that the current time in the simulation is set correctly