pb

package
v0.0.0-...-af67c94 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Motors    []*Motor `protobuf:"bytes,1,rep,name=Motors,proto3" json:"Motors,omitempty"`
	PWMPeriod uint32   `protobuf:"varint,2,opt,name=PWMPeriod,proto3" json:"PWMPeriod,omitempty"`
}

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetMotors

func (m *Config) GetMotors() []*Motor

func (*Config) GetPWMPeriod

func (m *Config) GetPWMPeriod() uint32

func (*Config) Marshal

func (m *Config) Marshal() (dAtA []byte, err error)

func (*Config) MarshalTo

func (m *Config) MarshalTo(dAtA []byte) (int, error)

func (*Config) MarshalToSizedBuffer

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size

func (m *Config) Size() (n int)

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal

func (m *Config) Unmarshal(dAtA []byte) error

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type Motor

type Motor struct {
	Pin     uint32  `protobuf:"varint,1,opt,name=Pin,proto3" json:"Pin,omitempty"`
	Offset  float32 `protobuf:"fixed32,3,opt,name=Offset,proto3" json:"Offset,omitempty"`
	Scale   float32 `protobuf:"fixed32,4,opt,name=Scale,proto3" json:"Scale,omitempty"`
	Min     float32 `protobuf:"fixed32,5,opt,name=Min,proto3" json:"Min,omitempty"`
	Max     float32 `protobuf:"fixed32,6,opt,name=Max,proto3" json:"Max,omitempty"`
	Default float32 `protobuf:"fixed32,7,opt,name=Default,proto3" json:"Default,omitempty"`
}

func (*Motor) Descriptor

func (*Motor) Descriptor() ([]byte, []int)

func (*Motor) GetDefault

func (m *Motor) GetDefault() float32

func (*Motor) GetMax

func (m *Motor) GetMax() float32

func (*Motor) GetMin

func (m *Motor) GetMin() float32

func (*Motor) GetOffset

func (m *Motor) GetOffset() float32

func (*Motor) GetPin

func (m *Motor) GetPin() uint32

func (*Motor) GetScale

func (m *Motor) GetScale() float32

func (*Motor) Marshal

func (m *Motor) Marshal() (dAtA []byte, err error)

func (*Motor) MarshalTo

func (m *Motor) MarshalTo(dAtA []byte) (int, error)

func (*Motor) MarshalToSizedBuffer

func (m *Motor) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Motor) ProtoMessage

func (*Motor) ProtoMessage()

func (*Motor) Reset

func (m *Motor) Reset()

func (*Motor) Size

func (m *Motor) Size() (n int)

func (*Motor) String

func (m *Motor) String() string

func (*Motor) Unmarshal

func (m *Motor) Unmarshal(dAtA []byte) error

func (*Motor) XXX_DiscardUnknown

func (m *Motor) XXX_DiscardUnknown()

func (*Motor) XXX_Marshal

func (m *Motor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Motor) XXX_Merge

func (m *Motor) XXX_Merge(src proto.Message)

func (*Motor) XXX_Size

func (m *Motor) XXX_Size() int

func (*Motor) XXX_Unmarshal

func (m *Motor) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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