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()
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_DriveServer ¶
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()
Click to show internal directories.
Click to hide internal directories.