propagator

package
v0.0.0-...-623ea98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL