steering

package
v0.0.0-...-fd62092 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package steering is a generated protocol buffer package.

It is generated from these files:

steering.proto

It has these top-level messages:

Direction
Telemetry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDriverServer

func RegisterDriverServer(s *grpc.Server, srv DriverServer)

Types

type Direction

type Direction struct {
	Dx int32 `protobuf:"varint,1,opt,name=dx" json:"dx,omitempty"`
	Dy int32 `protobuf:"varint,2,opt,name=dy" json:"dy,omitempty"`
}

Direction is normalized delta x and y that corresponds to joystick position. Range should be between -100 and 100.

func (*Direction) ProtoMessage

func (*Direction) ProtoMessage()

func (*Direction) Reset

func (m *Direction) Reset()

func (*Direction) String

func (m *Direction) String() string

type DriverClient

type DriverClient interface {
	// Drive is a client-to-server stream providing direction.
	Drive(ctx context.Context, opts ...grpc.CallOption) (Driver_DriveClient, error)
}

func NewDriverClient

func NewDriverClient(cc *grpc.ClientConn) DriverClient

type DriverServer

type DriverServer interface {
	// Drive is a client-to-server stream providing direction.
	Drive(Driver_DriveServer) error
}

type Driver_DriveClient

type Driver_DriveClient interface {
	Send(*Direction) error
	Recv() (*Telemetry, error)
	grpc.ClientStream
}

type Driver_DriveServer

type Driver_DriveServer interface {
	Send(*Telemetry) error
	Recv() (*Direction, error)
	grpc.ServerStream
}

type Telemetry

type Telemetry struct {
	Speed     int32 `protobuf:"varint,1,opt,name=speed" json:"speed,omitempty"`
	DistFront int32 `protobuf:"varint,2,opt,name=distFront" json:"distFront,omitempty"`
	DistRear  int32 `protobuf:"varint,3,opt,name=distRear" json:"distRear,omitempty"`
}

func (*Telemetry) ProtoMessage

func (*Telemetry) ProtoMessage()

func (*Telemetry) Reset

func (m *Telemetry) Reset()

func (*Telemetry) String

func (m *Telemetry) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL