fix: send 0 values when configuring base (#63)
This commit is contained in:
parent
593c062993
commit
b2cdf23fb7
|
@ -173,6 +173,14 @@ var testCases = []operationTestCase{
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config, err := ops.Configuration(ctx)
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("%+v", errors.WithStack(err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
t.Logf("updated configuration: %v", spew.Sdump(config))
|
||||||
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package model
|
package model
|
||||||
|
|
||||||
type Base struct {
|
type Base struct {
|
||||||
Accumulation int `json:"accumulation,omitempty"`
|
Accumulation int `json:"accumulation"`
|
||||||
AntennaOffset float64 `json:"antenna_offset,omitempty"`
|
AntennaOffset float64 `json:"antenna_offset"`
|
||||||
Coordinates BaseCoordinates `json:"coordinates,omitempty"`
|
Coordinates BaseCoordinates `json:"coordinates"`
|
||||||
Mode string `json:"mode,omitempty"`
|
Mode string `json:"mode"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type BaseCoordinates struct {
|
type BaseCoordinates struct {
|
||||||
Height float64 `json:"height,omitempty"`
|
Height float64 `json:"height"`
|
||||||
Latitude float64 `json:"latitude,omitempty"`
|
Latitude float64 `json:"latitude"`
|
||||||
Longitude float64 `json:"longitude,omitempty"`
|
Longitude float64 `json:"longitude"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue