Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetMotors() []*Motor
- func (m *Config) GetPWMPeriod() uint32
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Motor
- func (*Motor) Descriptor() ([]byte, []int)
- func (m *Motor) GetDefault() float32
- func (m *Motor) GetMax() float32
- func (m *Motor) GetMin() float32
- func (m *Motor) GetOffset() float32
- func (m *Motor) GetPin() uint32
- func (m *Motor) GetScale() float32
- func (m *Motor) Marshal() (dAtA []byte, err error)
- func (m *Motor) MarshalTo(dAtA []byte) (int, error)
- func (m *Motor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Motor) ProtoMessage()
- func (m *Motor) Reset()
- func (m *Motor) Size() (n int)
- func (m *Motor) String() string
- func (m *Motor) Unmarshal(dAtA []byte) error
- func (m *Motor) XXX_DiscardUnknown()
- func (m *Motor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Motor) XXX_Merge(src proto.Message)
- func (m *Motor) XXX_Size() int
- func (m *Motor) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
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) GetPWMPeriod ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
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) GetDefault ¶
func (*Motor) ProtoMessage ¶
func (*Motor) ProtoMessage()
func (*Motor) XXX_DiscardUnknown ¶
func (m *Motor) XXX_DiscardUnknown()
func (*Motor) XXX_Marshal ¶
func (*Motor) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.