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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
type Base struct {
|
||||
Accumulation int `json:"accumulation,omitempty"`
|
||||
AntennaOffset float64 `json:"antenna_offset,omitempty"`
|
||||
Coordinates BaseCoordinates `json:"coordinates,omitempty"`
|
||||
Mode string `json:"mode,omitempty"`
|
||||
Accumulation int `json:"accumulation"`
|
||||
AntennaOffset float64 `json:"antenna_offset"`
|
||||
Coordinates BaseCoordinates `json:"coordinates"`
|
||||
Mode string `json:"mode"`
|
||||
}
|
||||
|
||||
type BaseCoordinates struct {
|
||||
Height float64 `json:"height,omitempty"`
|
||||
Latitude float64 `json:"latitude,omitempty"`
|
||||
Longitude float64 `json:"longitude,omitempty"`
|
||||
Height float64 `json:"height"`
|
||||
Latitude float64 `json:"latitude"`
|
||||
Longitude float64 `json:"longitude"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue