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 ECEFCoordinates `json:"coordinates"` SampleInterval int `json:"sample_interval"` // in milliseconds MWSlipThreshold float64 `json:"mw_slip_threshold"` }
func NewConfigFromFile ¶
NewConfigFromFile reads a configuration from a file and returns a Config struct
type ECEFCoordinates ¶
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 ECEFCoordinates `json:"coordinates"` SampleInterval int `json:"sample_interval"` // in milliseconds MWSlipThreshold float64 `json:"mw_slip_threshold"` }
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.