Documentation ¶
Index ¶
- func AbsDuration(d time.Duration) time.Duration
- func FilterEpochs(epochs []observation.Epoch, config gnssconfig.Config) ([]observation.Epoch, error)
- func Prepare(epochs []observation.Epoch, ephStore *ephemeris.EphemerisStore, ...) ([]state.SatelliteStateMap, error)
- type CartesianDelta
- type GeodeticDelta
- type Input
- type Output
- type TDCP
- type Velocity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsDuration ¶ added in v0.9.0
Helper function to get the absolute value of a time.Duration
func FilterEpochs ¶ added in v0.10.1
func FilterEpochs(epochs []observation.Epoch, config gnssconfig.Config) ([]observation.Epoch, error)
func Prepare ¶ added in v0.10.1
func Prepare(epochs []observation.Epoch, ephStore *ephemeris.EphemerisStore, config gnssconfig.Config) ([]state.SatelliteStateMap, error)
Types ¶
type CartesianDelta ¶ added in v0.12.3
type GeodeticDelta ¶ added in v0.12.3
type Input ¶ added in v0.12.3
type Input struct { Type string `json:"type"` // "configuration", "ephemeris", "observation" Payload interface{} `json:"payload"` // The actual data (Metadata, Ephemeris, Epoch) }
Input represents the input data structure for the TDCP
type Output ¶ added in v0.12.3
type Output struct { Type string `json:"type"` // "velocity", "metrics" Payload interface{} `json:"payload"` // The actual velocity or metrics data }
Output represents the output data structure for the TDCP
func Calculate ¶ added in v0.10.1
func Calculate(epochs []observation.Epoch, ssm []state.SatelliteStateMap, config gnssconfig.Config) ([]Output, error)
CalculateTDCP calculates the TDCP for the two epochs.
func Process ¶
func Process(epochs []observation.Epoch, ephStore *ephemeris.EphemerisStore, config *gnssconfig.Config) ([]Output, error)
Process calculates the TDCP for the two epochs.
type TDCP ¶
type TDCP struct { Config gnssconfig.Config InputChan chan Input OutputChan chan Output Epochs []observation.Epoch Ephemeris *ephemeris.EphemerisStore SatelliteState []state.SatelliteStateMap }
TDCP is a struct that contains the data channels and the metadata, ephemeris, and epochs
func NewTDCP ¶ added in v0.9.0
func NewTDCP(config gnssconfig.Config) *TDCP
NewTDCP creates a new TDCP
type Velocity ¶ added in v0.12.0
type Velocity struct { StreamID string `json:"stream_id"` Timestamp time.Time `json:"timestamp"` SatelliteCount int `json:"satellite_count"` TimeDelta time.Duration `json:"time_delta"` ClockOffset float64 `json:"clock_offset"` GeodeticDelta GeodeticDelta `json:"geodetic_delta"` CartesianDelta CartesianDelta `json:"cartesian_delta"` }
Click to show internal directories.
Click to hide internal directories.