feat(AveragePosition): method to emit average_base_coordinates message
This commit is contained in:
@ -152,4 +152,18 @@ func (c *Client) Reboot(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// AveragePosition implements protocol.Operations.
|
||||
func (c *Client) AveragePosition(ctx context.Context) (*protocol.TaskMessage, error) {
|
||||
_, ops, err := c.getProtocol(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
taskMsg, err := ops.AveragePosition(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return taskMsg, err
|
||||
}
|
||||
var _ protocol.Operations = &Client{}
|
||||
|
Reference in New Issue
Block a user