config

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Combination

type Combination string

Combination is a type that defines the combination method for GNSS observables. IF = Ionosphere-Free NL = Narrow-Lane

func (Combination) MarshalJSON

func (c Combination) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Combination.

func (*Combination) UnmarshalJSON

func (c *Combination) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Combination.

type Config

type Config struct {
	Name                string                            `json:"name"`
	SystemSignalMapping *observation.ObservationsBySystem `json:"system_signal_mapping"`
	ElevationMasks      *ElevationMaskBySystem            `json:"elevation_masks"`
	Coordinates         coordinates.Vector3D              `json:"coordinates"`
	SampleInterval      int                               `json:"sample_interval"` // in milliseconds
	MWSlipThreshold     float64                           `json:"mw_slip_threshold"`
	Combination         string                            `json:"combination"` // "IF" or "NL"
	Output              Output                            `json:"output"`
}

Config is a struct that defines the configuration for a GNSS processing run.

func NewConfigFromFile

func NewConfigFromFile(path string) (*Config, error)

NewConfigFromFile reads a JSON file and returns a Config struct.

func (*Config) MarshalJSON

func (c *Config) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for Config.

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for Config.

type ElevationMaskBySystem

type ElevationMaskBySystem map[gnss.System]float64

ElevationMaskBySystem is a map of GNSS systems to elevation mask values.

func NewElevationMaskBySystem

func NewElevationMaskBySystem() *ElevationMaskBySystem

NewElevationMaskBySystem returns a new ElevationMaskBySystem with default values.

func (ElevationMaskBySystem) MarshalJSON

func (e ElevationMaskBySystem) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for ElevationMaskBySystem.

func (*ElevationMaskBySystem) UnmarshalJSON

func (e *ElevationMaskBySystem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for ElevationMaskBySystem.

type Output

type Output struct {
	Velocity     bool `json:"velocity"`
	GeometryFree bool `json:"geometry_free"`
	Residuals    bool `json:"residuals"`
}

Output is a struct that defines the output options for a GNSS configuration.

Jump to

Keyboard shortcuts

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