Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `json:"name"`
SystemSignalMapping map[gnss.System][]string `json:"system_signal_mapping"`
ElevationMasks map[gnss.System]float64 `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"`
}
func NewConfigFromFile ¶
NewConfigFromFile reads a configuration from a file and returns a Config struct
type RawConfig ¶
type RawConfig struct {
Name string `json:"name"`
SystemSignalMapping map[string][]string `json:"system_signal_mapping"`
ElevationMasks map[string]float64 `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"`
}
I havent found a good way to read a config file and return the Config struct directly
Click to show internal directories.
Click to hide internal directories.