2018-09-21 15:39:21 +02:00
|
|
|
|
package reachview
|
|
|
|
|
|
2018-09-26 15:56:06 +02:00
|
|
|
|
var (
|
|
|
|
|
// On -
|
|
|
|
|
On = String("on")
|
|
|
|
|
// Off -
|
|
|
|
|
Off = String("off")
|
|
|
|
|
// True -
|
|
|
|
|
True = Bool(true)
|
|
|
|
|
// False -
|
|
|
|
|
False = Bool(false)
|
|
|
|
|
// GPSARModeFixAndHold -
|
|
|
|
|
GPSARModeFixAndHold = String("fix-and-hold")
|
|
|
|
|
// GPSARModeContinuous -
|
|
|
|
|
GPSARModeContinuous = String("continuous")
|
|
|
|
|
// PositionningModeKinematic -
|
|
|
|
|
PositionningModeKinematic = String("kinematic")
|
|
|
|
|
// PositionningModeSingle -
|
|
|
|
|
PositionningModeSingle = String("single")
|
|
|
|
|
// PositionningModeStatic -
|
|
|
|
|
PositionningModeStatic = String("static")
|
|
|
|
|
// IOFormatRTCM3 -
|
|
|
|
|
IOFormatRTCM3 = String("rtcm3")
|
|
|
|
|
// IOTypeLoRa -
|
|
|
|
|
IOTypeLoRa = String("lora")
|
|
|
|
|
// BaseCoordinatesModeManual -
|
|
|
|
|
BaseCoordinatesModeManual = String("manual")
|
|
|
|
|
// BaseCoordinatesModeAverageFix -
|
|
|
|
|
BaseCoordinatesModeAverageFix = String("fix-and-hold")
|
|
|
|
|
// BaseCoordinatesModeAverageSingle -
|
|
|
|
|
BaseCoordinatesModeAverageSingle = String("single-and-hold")
|
|
|
|
|
// BaseCoordinatesModeAverageFloat -
|
|
|
|
|
BaseCoordinatesModeAverageFloat = String("float-and-hold")
|
|
|
|
|
// BaseCoordinatesFormatLLH -
|
|
|
|
|
BaseCoordinatesFormatLLH = String("llh")
|
|
|
|
|
// BaseCoordinatesFormatXYZ -
|
|
|
|
|
BaseCoordinatesFormatXYZ = String("xyz")
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// String returns an string pointer
|
|
|
|
|
// This is a helper to constructs partials configations objects
|
|
|
|
|
// for the ApplyConfiguration() method
|
|
|
|
|
func String(v string) *string {
|
|
|
|
|
return &v
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Int returns an int pointer
|
|
|
|
|
// This is a helper to constructs partials configations objects
|
|
|
|
|
// for the ApplyConfiguration() method
|
|
|
|
|
func Int(v int) *int {
|
|
|
|
|
return &v
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bool returns a bool pointer
|
|
|
|
|
// This is a helper to constructs partials configations objects
|
|
|
|
|
// for the ApplyConfiguration() method
|
|
|
|
|
func Bool(v bool) *bool {
|
|
|
|
|
return &v
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Float returns a float64 pointer
|
|
|
|
|
// This is a helper to constructs partials configations objects
|
|
|
|
|
// for the ApplyConfiguration() method
|
|
|
|
|
func Float(v float64) *float64 {
|
|
|
|
|
return &v
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// Configuration -
|
|
|
|
|
type Configuration struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
RTKSettings *RTKSettings `mapstructure:"rtk settings,omitempty" json:"rtk settings,omitempty"`
|
|
|
|
|
CorrectionInput *CorrectionInput `mapstructure:"correction input,omitempty" json:"correction input,omitempty"`
|
|
|
|
|
PositionOutput *PositionOutput `mapstructure:"position output,omitempty" json:"position output,omitempty"`
|
|
|
|
|
BaseMode *BaseMode `mapstructure:"base mode,omitempty" json:"base mode,omitempty"`
|
|
|
|
|
Logging *Logging `mapstructure:"logging,omitempty" json:"logging,omitempty"`
|
|
|
|
|
Bluetooth *Bluetooth `mapstructure:"bluetooth,omitempty" json:"bluetooth,omitempty"`
|
|
|
|
|
LoRa *LoRa `mapstructure:"lora,omitempty" json:"lora,omitempty"`
|
|
|
|
|
Constraints *Constraints `mapstructure:"constraints,omitempty" json:"constraints,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RTKSettings -
|
|
|
|
|
type RTKSettings struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
GLONASSARMode *string `mapstructure:"glonass ar mode,omitempty" json:"glonass ar mode,omitempty"`
|
|
|
|
|
UpdateRate *string `mapstructure:"update rate,omitempty" json:"update rate,omitempty"`
|
|
|
|
|
ElevationMaskAngle *string `mapstructure:"elevation mask angle,omitempty" json:"elevation mask angle,omitempty"`
|
|
|
|
|
MaxHorizontalAcceleration *string `mapstructure:"max horizontal acceleration,omitempty" json:"max horizontal acceleration,omitempty"`
|
|
|
|
|
SNRMask *string `mapstructure:"snr mask,omitempty" json:"snr mask,omitempty"`
|
|
|
|
|
GPSARMode *string `mapstructure:"gps ar mode,omitempty" json:"gps ar mode,omitempty"`
|
|
|
|
|
PositionningMode *string `mapstructure:"positioning mode,omitempty" json:"positioning mode,omitempty"`
|
|
|
|
|
PositioningSystems *PositionningSystems `mapstructure:"positioning systems,omitempty" json:"positioning systems,omitempty"`
|
|
|
|
|
MaxVerticalAcceleration *string `mapstructure:"max vertical acceleration,omitempty" json:"max vertical acceleration,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PositionningSystems -
|
|
|
|
|
type PositionningSystems struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
GLONASS *bool `mapstructure:"glonass,omitempty" json:"glonass,omitempty"`
|
|
|
|
|
SBAS *bool `mapstructure:"sbas,omitempty" json:"sbas,omitempty"`
|
|
|
|
|
QZS *bool `mapstructure:"qzs,omitempty" json:"qzs,omitempty"`
|
|
|
|
|
QZSS *bool `mapstructure:"qzss,omitempty" json:"qzss,omitempty"`
|
|
|
|
|
Compass *bool `mapstructure:"compass,omitempty" json:"compass,omitempty"`
|
|
|
|
|
Galileo *bool `mapstructure:"galileo,omitempty" json:"galileo,omitempty"`
|
|
|
|
|
GPS *bool `mapstructure:"gps,omitempty" json:"gps,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CorrectionInput -
|
|
|
|
|
type CorrectionInput struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Input2 *Input2 `mapstructure:"input2,omitempty" json:"input2,omitempty"`
|
|
|
|
|
Input3 *Input3 `mapstructure:"input3,omitempty" json:"input3,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Input -
|
|
|
|
|
type Input struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Path *string `mapstructure:"path,omitempty" json:"path,omitempty"`
|
|
|
|
|
Type *string `mapstructure:"type,omitempty" json:"type,omitempty"`
|
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty" json:"enabled,omitempty"`
|
|
|
|
|
Format *string `mapstructure:"format,omitempty" json:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Input2 -
|
|
|
|
|
type Input2 struct {
|
|
|
|
|
Input `mapstructure:",squash"`
|
2018-09-26 15:56:06 +02:00
|
|
|
|
SendPositionToBase *string `mapstructure:"send position to base,omitempty" json:"send position to base,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Input3 -
|
|
|
|
|
type Input3 struct {
|
|
|
|
|
Input `mapstructure:",squash"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PositionOutput -
|
|
|
|
|
type PositionOutput struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Output1 *Output `mapstructure:"output1,omitempty" json:"output1,omitempty"`
|
|
|
|
|
Output2 *Output `mapstructure:"output2,omitempty" json:"output2,omitempty"`
|
|
|
|
|
Output3 *Output `mapstructure:"output3,omitempty" json:"output3,omitempty"`
|
|
|
|
|
Output4 *Output `mapstructure:"output4,omitempty" json:"output4,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Output -
|
|
|
|
|
type Output struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Path *string `mapstructure:"path,omitempty" json:"path,omitempty"`
|
|
|
|
|
Type *string `mapstructure:"type,omitempty" json:"type,omitempty"`
|
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty" json:"enabled,omitempty"`
|
|
|
|
|
Format *string `mapstructure:"format,omitempty" json:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BaseMode -
|
|
|
|
|
type BaseMode struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Output *Output `mapstructure:"output,omitempty" json:"output,omitempty"`
|
|
|
|
|
BaseCoordinates *BaseCoordinates `mapstructure:"base coordinates,omitempty" json:"base coordinates,omitempty"`
|
|
|
|
|
RTCM3Messages *RTCM3Messages `mapstructure:"rtcm3 messages,omitempty" json:"rtcm3 messages,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BaseCoordinates -
|
|
|
|
|
type BaseCoordinates struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Format *string `mapstructure:"format,omitempty" json:"format,omitempty"`
|
|
|
|
|
AntennaOffset *AntennaOffset `mapstructure:"antenna offset,omitempty" json:"antenna offset,omitempty"`
|
|
|
|
|
Accumulation *string `mapstructure:"accumulation,omitempty" json:"accumulation,omitempty"`
|
|
|
|
|
Coordinates []*string `mapstructure:"coordinates,omitempty" json:"coordinates,omitempty"`
|
|
|
|
|
Mode *string `mapstructure:"mode,omitempty" json:"mode,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// AntennaOffset -
|
|
|
|
|
type AntennaOffset struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
East *string `mapstructure:"east,omitempty" json:"east,omitempty"`
|
|
|
|
|
North *string `mapstructure:"north,omitempty" json:"north,omitempty"`
|
|
|
|
|
Up *string `mapstructure:"up,omitempty" json:"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
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1002 *RTCMMessageType `mapstructure:"1002,omitemtpy" json:"1002,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// Station coordinates XYZ for antenna reference point and antenna height.
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1006 *RTCMMessageType `mapstructure:"1006,omitemtpy" json:"1006,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// Antenna serial number.
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1008 *RTCMMessageType `mapstructure:"1008,omitemtpy" json:"1008,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// GLONASS L1 code and phase and ambiguities and carrier-to-noise ratio.
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1010 *RTCMMessageType `mapstructure:"1010,omitemtpy" json:"1010,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// GPS ephemeris.
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1019 *RTCMMessageType `mapstructure:"1019,omitemtpy" json:"1019,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// GLONASS ephemeris.
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1020 *RTCMMessageType `mapstructure:"1020,omitemtpy" json:"1020,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// The type 7 Multiple Signal Message format for Europe’s Galileo system
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1097 *RTCMMessageType `mapstructure:"1097,omitemtpy" json:"1097,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// Full SBAS pseudo-ranges, carrier phases, Doppler and signal strength (high resolution)
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1107 *RTCMMessageType `mapstructure:"1107,omitemtpy" json:"1107,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// Full QZSS pseudo-ranges, carrier phases, Doppler and signal strength (high resolution)
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1117 *RTCMMessageType `mapstructure:"1117,omitemtpy" json:"1117,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
// Full BeiDou pseudo-ranges, carrier phases, Doppler and signal strength (high resolution)
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Type1127 *RTCMMessageType `mapstructure:"1127,omitemtpy" json:"1127,omitemtpy"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// RTCMMessageType -
|
|
|
|
|
type RTCMMessageType struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Frequency *string `mapstructure:"frequency,omitempty" json:"frequency,omitempty"`
|
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty" json:"enabled,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Logging -
|
|
|
|
|
type Logging struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Correction *LoggingService `mapstructure:"correction,omitempty" json:"correction,omitempty"`
|
|
|
|
|
Interval *int `mapstructure:"interval,omitempty" json:"interval,omitempty"`
|
|
|
|
|
Solution *LoggingService `mapstructure:"solution,omitempty" json:"solution,omitempty"`
|
|
|
|
|
Raw *LoggingService `mapstructure:"raw,omitempty" json:"raw,omitempty"`
|
|
|
|
|
Base *LoggingService `mapstructure:"base,omitempty" json:"base,omitempty"`
|
|
|
|
|
Overwrite *bool `mapstructure:"overwrite,omitempty" json:"overwrite,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoggingService -
|
|
|
|
|
type LoggingService struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Started *bool `mapstructure:"started,omitempty" json:"started,omitempty"`
|
|
|
|
|
Version *string `mapstructure:"version,omitempty" json:"version,omitempty"`
|
|
|
|
|
Format *string `mapstructure:"format,omitempty" json:"format,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Bluetooth -
|
|
|
|
|
type Bluetooth struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Enabled *bool `mapstructure:"enabled,omitempty" json:"enabled,omitempty"`
|
|
|
|
|
Discoverable *bool `mapstructure:"discoverable,omitempty" json:"discoverable,omitempty"`
|
|
|
|
|
Pin *int `mapstructure:"pin,omitempty" json:"pin,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoRa -
|
|
|
|
|
type LoRa struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
AirRate *string `mapstructure:"air rate,omitempty" json:"air rate,omitempty"`
|
|
|
|
|
Frequency *float64 `mapstructure:"frequency,omitempty" json:"frequency,omitempty"`
|
|
|
|
|
OutputPower *string `mapstructure:"output power,omitempty" json:"output power,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Constraints -
|
|
|
|
|
type Constraints struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
LoRa *LoRaConstraints `mapstructure:"lora,omitempty" json:"lora,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoRaConstraints -
|
|
|
|
|
type LoRaConstraints struct {
|
2019-08-18 20:30:35 +02:00
|
|
|
|
Frequency [][]int `mapstructure:"frequency,omitempty" json:"frequency,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LoRaFrequencyRange -
|
|
|
|
|
type LoRaFrequencyRange struct {
|
2018-09-26 15:56:06 +02:00
|
|
|
|
Min *int `mapstructure:"min,omitempty" json:"min,omitempty"`
|
|
|
|
|
Max *int `mapstructure:"max,omitempty" json:"max,omitempty"`
|
2018-09-21 15:39:21 +02:00
|
|
|
|
}
|