2018-09-21 15:39:21 +02:00
|
|
|
|
package reachview
|
|
|
|
|
|
|
|
|
|
// Configuration -
|
|
|
|
|
type Configuration struct {
|
|
|
|
|
RTKSettings *RTKSettings `mapstructure:"rtk settings,omitempty"`
|
|
|
|
|
CorrectionInput *CorrectionInput `mapstructure:"correction input,omitempty"`
|
|
|
|
|
PositionOutput *PositionOutput `mapstructure:"position output,omitempty"`
|
|
|
|
|
BaseMode *BaseMode `mapstructure:"base mode,omitempty"`
|
|
|
|
|
Logging *Logging `mapstructure:"logging,omitempty"`
|
|
|
|
|
Bluetooth *Bluetooth `mapstructure:"bluetooth,omitempty"`
|
|
|
|
|
LoRa *LoRa `mapstructure:"lora,omitempty"`
|
|
|
|
|
Constraints *Constraints `mapstructure:"constraints,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RTKSettings -
|
|
|
|
|
type RTKSettings struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
GLONASSARMode *string `mapstructure:"glonass ar mode,omitempty"`
|
|
|
|
|
UpdateRate *string `mapstructure:"update rate,omitempty"`
|
|
|
|
|
ElevationMaskAngle *string `mapstructure:"elevation mask angle,omitempty"`
|
|
|
|
|
MaxHorizontalAcceleration *string `mapstructure:"max horizontal acceleration,omitempty"`
|
|
|
|
|
SNRMask *string `mapstructure:"snr mask,omitempty"`
|
|
|
|
|
GPSARMode *string `mapstructure:"gps ar mode,omitempty"`
|
|
|
|
|
PositionningMode *string `mapstructure:"positioning mode,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
PositioningSystems *PositionningSystems `mapstructure:"positioning systems,omitempty"`
|
2018-09-25 17:28:12 +02:00
|
|
|
|
MaxVerticalAcceleration *string `mapstructure:"max vertical acceleration,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PositionningSystems -
|
|
|
|
|
type PositionningSystems struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
GLONASS *bool `mapstructure:"glonass,omitempty"`
|
|
|
|
|
SBAS *bool `mapstructure:"sbas,omitempty"`
|
|
|
|
|
QZS *bool `mapstructure:"qzs,omitempty"`
|
|
|
|
|
QZSS *bool `mapstructure:"qzss,omitempty"`
|
|
|
|
|
Compass *bool `mapstructure:"compass,omitempty"`
|
|
|
|
|
Galileo *bool `mapstructure:"galileo,omitempty"`
|
|
|
|
|
GPS *bool `mapstructure:"gps,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CorrectionInput -
|
|
|
|
|
type CorrectionInput struct {
|
|
|
|
|
Input2 *Input2 `mapstructure:"input2,omitempty"`
|
|
|
|
|
Input3 *Input3 `mapstructure:"input3,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Input -
|
|
|
|
|
type Input struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Path *string `mapstructure:"path,omitempty"`
|
|
|
|
|
Type *string `mapstructure:"type,omitempty"`
|
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty"`
|
|
|
|
|
Format *string `mapstructure:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Input2 -
|
|
|
|
|
type Input2 struct {
|
|
|
|
|
Input `mapstructure:",squash"`
|
2018-09-25 17:28:12 +02:00
|
|
|
|
SendPositionToBase *string `mapstructure:"send position to base,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Input3 -
|
|
|
|
|
type Input3 struct {
|
|
|
|
|
Input `mapstructure:",squash"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PositionOutput -
|
|
|
|
|
type PositionOutput struct {
|
|
|
|
|
Output1 *Output `mapstructure:"output1,omitempty"`
|
|
|
|
|
Output2 *Output `mapstructure:"output2,omitempty"`
|
|
|
|
|
Output3 *Output `mapstructure:"output3,omitempty"`
|
|
|
|
|
Output4 *Output `mapstructure:"output4,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Output -
|
|
|
|
|
type Output struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Path *string `mapstructure:"path,omitempty"`
|
|
|
|
|
Type *string `mapstructure:"type,omitempty"`
|
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty"`
|
|
|
|
|
Format *string `mapstructure:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BaseMode -
|
|
|
|
|
type BaseMode struct {
|
|
|
|
|
Output *Output `mapstructure:"output,omitempty"`
|
|
|
|
|
BaseCoordinates *BaseCoordinates `mapstructure:"base coordinates,omitempty"`
|
|
|
|
|
RTCM3Messages *RTCM3Messages `mapstructure:"rtcm3 messages,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BaseCoordinates -
|
|
|
|
|
type BaseCoordinates struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Format *string `mapstructure:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
AntennaOffset *AntennaOffset `mapstructure:"antenna offset,omitempty"`
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Accumulation *string `mapstructure:"accumulation,omitempty"`
|
|
|
|
|
Coordinates *[]string `mapstructure:"coordinates,omitempty"`
|
|
|
|
|
Mode *string `mapstructure:"mode,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AntennaOffset -
|
|
|
|
|
type AntennaOffset struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
East *string `mapstructure:"east,omitempty"`
|
|
|
|
|
North *string `mapstructure:"north,omitempty"`
|
|
|
|
|
Up *string `mapstructure:"up,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RTCM3Messages -
|
|
|
|
|
type RTCM3Messages struct {
|
|
|
|
|
// GPS L1 code and phase and ambiguities and carrier-to-noise ratio
|
|
|
|
|
Type1002 *RTCMMessageType `mapstructure:"1002,omitemtpy"`
|
|
|
|
|
// Station coordinates XYZ for antenna reference point and antenna height.
|
|
|
|
|
Type1006 *RTCMMessageType `mapstructure:"1006,omitemtpy"`
|
|
|
|
|
// Antenna serial number.
|
|
|
|
|
Type1008 *RTCMMessageType `mapstructure:"1008,omitemtpy"`
|
|
|
|
|
// GLONASS L1 code and phase and ambiguities and carrier-to-noise ratio.
|
|
|
|
|
Type1010 *RTCMMessageType `mapstructure:"1010,omitemtpy"`
|
|
|
|
|
// GPS ephemeris.
|
|
|
|
|
Type1019 *RTCMMessageType `mapstructure:"1019,omitemtpy"`
|
|
|
|
|
// GLONASS ephemeris.
|
|
|
|
|
Type1020 *RTCMMessageType `mapstructure:"1020,omitemtpy"`
|
|
|
|
|
// The type 7 Multiple Signal Message format for Europe’s Galileo system
|
|
|
|
|
Type1097 *RTCMMessageType `mapstructure:"1097,omitemtpy"`
|
|
|
|
|
// Full SBAS pseudo-ranges, carrier phases, Doppler and signal strength (high resolution)
|
|
|
|
|
Type1107 *RTCMMessageType `mapstructure:"1107,omitemtpy"`
|
|
|
|
|
// Full QZSS pseudo-ranges, carrier phases, Doppler and signal strength (high resolution)
|
|
|
|
|
Type1117 *RTCMMessageType `mapstructure:"1117,omitemtpy"`
|
|
|
|
|
// Full BeiDou pseudo-ranges, carrier phases, Doppler and signal strength (high resolution)
|
|
|
|
|
Type1127 *RTCMMessageType `mapstructure:"1127,omitemtpy"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RTCMMessageType -
|
|
|
|
|
type RTCMMessageType struct {
|
|
|
|
|
Frequency string `mapstructure:"frequency"`
|
|
|
|
|
Enabled bool `mapstructure:"enabled"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Logging -
|
|
|
|
|
type Logging struct {
|
|
|
|
|
Correction *LoggingService `mapstructure:"correction,omitempty"`
|
|
|
|
|
Interval int `mapstructure:"interval"`
|
|
|
|
|
Solution *LoggingService `mapstructure:"solution,omitempty"`
|
|
|
|
|
Raw *LoggingService `mapstructure:"raw,omitempty"`
|
|
|
|
|
Base *LoggingService `mapstructure:"base,omitempty"`
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Overwrite *bool `mapstructure:"overwrite,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoggingService -
|
|
|
|
|
type LoggingService struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Started *bool `mapstructure:"started,omitempty"`
|
|
|
|
|
Version *string `mapstructure:"version,omitempty"`
|
|
|
|
|
Format *string `mapstructure:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bluetooth -
|
|
|
|
|
type Bluetooth struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty"`
|
|
|
|
|
Discoverable *bool `mapstructure:"discoverable,omitempty"`
|
|
|
|
|
Pin *int `mapstructure:"pin,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoRa -
|
|
|
|
|
type LoRa struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
AirRate *string `mapstructure:"air rate,omitempty"`
|
|
|
|
|
Frequency *float64 `mapstructure:"frequency,omitempty"`
|
|
|
|
|
OutputPower *string `mapstructure:"output power,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Constraints -
|
|
|
|
|
type Constraints struct {
|
|
|
|
|
LoRa *LoRaConstraints `mapstructure:"lora,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoRaConstraints -
|
|
|
|
|
type LoRaConstraints struct {
|
|
|
|
|
Frequency *LoRaFrequencyRange `mapstructure:"frequency,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoRaFrequencyRange -
|
|
|
|
|
type LoRaFrequencyRange struct {
|
2018-09-25 17:28:12 +02:00
|
|
|
|
Min *int `mapstructure:"min,omitempty"`
|
|
|
|
|
Max *int `mapstructure:"max,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|