Documentation
¶
Index ¶
Constants ¶
View Source
const PROPAGATION_API_URL = "http://localhost:5000/satellite/propagate"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropagatorClient ¶
type PropagatorClient struct {
BaseURL string
}
func NewPropagatorClient ¶
func NewPropagatorClient(baseURL string) *PropagatorClient
NewPropagatorClient creates a new PropagatorClient with the given base URL.
func (*PropagatorClient) FetchPropagation ¶
func (client *PropagatorClient) FetchPropagation(ctx context.Context, tle1, tle2, startTime string, durationMinutes, intervalSeconds int) ([]*SatellitePosition, error)
FetchPropagation fetches propagated positions for a given TLE and parameters.
type SatellitePosition ¶
type SatellitePosition struct { Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Altitude float64 `json:"altitude"` Time string `json:"time"` }
SatellitePosition represents the propagated position of a satellite.
type SatellitePropagationRequest ¶
type SatellitePropagationRequest struct { TLELine1 string `json:"tle_line1"` TLELine2 string `json:"tle_line2"` StartTime string `json:"start_time"` DurationMinutes int `json:"duration_minutes"` IntervalSeconds int `json:"interval_seconds"` }
SatellitePropagationRequest represents the payload for the propagation request.
Click to show internal directories.
Click to hide internal directories.