From 4ae462c9e0469dc4572a54e8271ae24404a69db7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 11 Dec 2017 22:18:31 +0100 Subject: ... --- elegoo.pb.go | 142 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 91 insertions(+), 51 deletions(-) (limited to 'elegoo.pb.go') diff --git a/elegoo.pb.go b/elegoo.pb.go index 6ed63d7..9e41ff7 100644 --- a/elegoo.pb.go +++ b/elegoo.pb.go @@ -10,8 +10,10 @@ It is generated from these files: It has these top-level messages: Speed Command - Sensor - Events + UltraSonic + InfraRed + RemoteControl + Event */ package main @@ -94,82 +96,114 @@ func (m *Command) GetStopAfter() uint32 { return 0 } -type Sensor struct { +type UltraSonic struct { + Distance uint32 `protobuf:"varint,1,opt,name=Distance" json:"Distance,omitempty"` + Direction int32 `protobuf:"zigzag32,2,opt,name=Direction" json:"Direction,omitempty"` +} + +func (m *UltraSonic) Reset() { *m = UltraSonic{} } +func (m *UltraSonic) String() string { return proto.CompactTextString(m) } +func (*UltraSonic) ProtoMessage() {} +func (*UltraSonic) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } + +func (m *UltraSonic) GetDistance() uint32 { + if m != nil { + return m.Distance + } + return 0 +} + +func (m *UltraSonic) GetDirection() int32 { + if m != nil { + return m.Direction + } + return 0 +} + +type InfraRed struct { R bool `protobuf:"varint,1,opt,name=R" json:"R,omitempty"` C bool `protobuf:"varint,2,opt,name=C" json:"C,omitempty"` L bool `protobuf:"varint,3,opt,name=L" json:"L,omitempty"` } -func (m *Sensor) Reset() { *m = Sensor{} } -func (m *Sensor) String() string { return proto.CompactTextString(m) } -func (*Sensor) ProtoMessage() {} -func (*Sensor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } +func (m *InfraRed) Reset() { *m = InfraRed{} } +func (m *InfraRed) String() string { return proto.CompactTextString(m) } +func (*InfraRed) ProtoMessage() {} +func (*InfraRed) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } -func (m *Sensor) GetR() bool { +func (m *InfraRed) GetR() bool { if m != nil { return m.R } return false } -func (m *Sensor) GetC() bool { +func (m *InfraRed) GetC() bool { if m != nil { return m.C } return false } -func (m *Sensor) GetL() bool { +func (m *InfraRed) GetL() bool { if m != nil { return m.L } return false } -type Events struct { - Distance uint32 `protobuf:"varint,1,opt,name=Distance" json:"Distance,omitempty"` - Direction int32 `protobuf:"zigzag32,2,opt,name=Direction" json:"Direction,omitempty"` - Sensor *Sensor `protobuf:"bytes,3,opt,name=Sensor" json:"Sensor,omitempty"` - KeyPress uint32 `protobuf:"varint,6,opt,name=KeyPress" json:"KeyPress,omitempty"` - Time uint32 `protobuf:"varint,7,opt,name=Time" json:"Time,omitempty"` +type RemoteControl struct { + Key uint32 `protobuf:"varint,1,opt,name=Key" json:"Key,omitempty"` } -func (m *Events) Reset() { *m = Events{} } -func (m *Events) String() string { return proto.CompactTextString(m) } -func (*Events) ProtoMessage() {} -func (*Events) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } +func (m *RemoteControl) Reset() { *m = RemoteControl{} } +func (m *RemoteControl) String() string { return proto.CompactTextString(m) } +func (*RemoteControl) ProtoMessage() {} +func (*RemoteControl) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } -func (m *Events) GetDistance() uint32 { +func (m *RemoteControl) GetKey() uint32 { if m != nil { - return m.Distance + return m.Key } return 0 } -func (m *Events) GetDirection() int32 { +type Event struct { + Head *UltraSonic `protobuf:"bytes,1,opt,name=Head" json:"Head,omitempty"` + Sensor *InfraRed `protobuf:"bytes,2,opt,name=Sensor" json:"Sensor,omitempty"` + Remote *RemoteControl `protobuf:"bytes,3,opt,name=Remote" json:"Remote,omitempty"` + TimeStamp uint32 `protobuf:"varint,4,opt,name=TimeStamp" json:"TimeStamp,omitempty"` +} + +func (m *Event) Reset() { *m = Event{} } +func (m *Event) String() string { return proto.CompactTextString(m) } +func (*Event) ProtoMessage() {} +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } + +func (m *Event) GetHead() *UltraSonic { if m != nil { - return m.Direction + return m.Head } - return 0 + return nil } -func (m *Events) GetSensor() *Sensor { +func (m *Event) GetSensor() *InfraRed { if m != nil { return m.Sensor } return nil } -func (m *Events) GetKeyPress() uint32 { +func (m *Event) GetRemote() *RemoteControl { if m != nil { - return m.KeyPress + return m.Remote } - return 0 + return nil } -func (m *Events) GetTime() uint32 { +func (m *Event) GetTimeStamp() uint32 { if m != nil { - return m.Time + return m.TimeStamp } return 0 } @@ -177,29 +211,35 @@ func (m *Events) GetTime() uint32 { func init() { proto.RegisterType((*Speed)(nil), "elegoo.Speed") proto.RegisterType((*Command)(nil), "elegoo.Command") - proto.RegisterType((*Sensor)(nil), "elegoo.Sensor") - proto.RegisterType((*Events)(nil), "elegoo.Events") + proto.RegisterType((*UltraSonic)(nil), "elegoo.UltraSonic") + proto.RegisterType((*InfraRed)(nil), "elegoo.InfraRed") + proto.RegisterType((*RemoteControl)(nil), "elegoo.RemoteControl") + proto.RegisterType((*Event)(nil), "elegoo.Event") } func init() { proto.RegisterFile("elegoo.proto", fileDescriptor0) } var fileDescriptor0 = []byte{ - // 268 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xb1, 0x4e, 0x84, 0x40, - 0x10, 0x86, 0x33, 0xca, 0xed, 0xe1, 0xde, 0x61, 0xe2, 0x56, 0x9b, 0x8b, 0x05, 0xc1, 0xc4, 0x50, - 0x5d, 0x81, 0x4f, 0xa0, 0x9c, 0x95, 0x14, 0x66, 0xb0, 0xb2, 0xc3, 0xbb, 0xd1, 0x90, 0xc8, 0x2e, - 0x81, 0x8d, 0x89, 0x8d, 0x0f, 0xe2, 0xd3, 0x9a, 0x9d, 0x3d, 0x50, 0xbb, 0xf9, 0xfe, 0x19, 0xfe, - 0xf9, 0x87, 0x95, 0x6b, 0x7a, 0xa7, 0x37, 0x6b, 0xb7, 0xfd, 0x60, 0x9d, 0x55, 0x22, 0x50, 0x76, - 0x25, 0x17, 0x75, 0x4f, 0x74, 0x50, 0x6b, 0x09, 0x95, 0x86, 0x14, 0xf2, 0x0b, 0x84, 0xca, 0x13, - 0xea, 0x93, 0x40, 0x98, 0x7d, 0xc9, 0x65, 0x69, 0xbb, 0xae, 0x31, 0x07, 0x35, 0xcd, 0xf3, 0xe8, - 0xaa, 0x48, 0xb6, 0x47, 0x57, 0x16, 0xf1, 0xe8, 0xa5, 0x64, 0x54, 0x3b, 0xdb, 0xeb, 0xd3, 0x14, - 0xf2, 0x18, 0xb9, 0x56, 0x97, 0xf2, 0x6c, 0xd7, 0x0e, 0xb4, 0x77, 0xad, 0x35, 0x3a, 0x4a, 0x21, - 0x4f, 0xf0, 0x57, 0xf0, 0x5d, 0x3f, 0x75, 0xfb, 0xea, 0x68, 0xd0, 0x8b, 0xd0, 0x9d, 0x85, 0xac, - 0x90, 0xa2, 0x26, 0x33, 0xda, 0x21, 0xe4, 0x02, 0xb6, 0x05, 0xf4, 0x54, 0x72, 0xca, 0x18, 0xa1, - 0x0c, 0x17, 0x84, 0x95, 0x50, 0x65, 0xdf, 0x20, 0xc5, 0xfd, 0x07, 0x19, 0x37, 0xaa, 0x8d, 0x8c, - 0x77, 0xed, 0xe8, 0x1a, 0xb3, 0x27, 0xfe, 0x36, 0xc1, 0x99, 0xff, 0xc7, 0x0a, 0x07, 0xff, 0x89, - 0x75, 0x3d, 0x2d, 0x66, 0xdf, 0x55, 0x71, 0x3e, 0x9f, 0xcb, 0x2a, 0x4e, 0xb1, 0x36, 0x32, 0x7e, - 0xa0, 0xcf, 0xc7, 0x81, 0xc6, 0x51, 0x8b, 0xb0, 0x61, 0x62, 0xff, 0x33, 0x9e, 0xda, 0x8e, 0xf4, - 0x92, 0x75, 0xae, 0xef, 0xc4, 0x73, 0xd4, 0x35, 0xad, 0x79, 0x11, 0xfc, 0x18, 0x37, 0x3f, 0x01, - 0x00, 0x00, 0xff, 0xff, 0x90, 0x19, 0xf0, 0xc2, 0x9c, 0x01, 0x00, 0x00, + // 322 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x52, 0x4f, 0x4b, 0xc3, 0x30, + 0x1c, 0x25, 0xae, 0xab, 0xf5, 0xb7, 0x15, 0x66, 0x40, 0x28, 0xe2, 0x61, 0x56, 0x90, 0x5e, 0xdc, + 0x61, 0xfa, 0x05, 0xb4, 0x53, 0x14, 0x77, 0xfa, 0x55, 0x2f, 0xde, 0xe2, 0xf6, 0x9b, 0x14, 0xd6, + 0xa4, 0x64, 0x41, 0xf0, 0xe2, 0xc7, 0xf1, 0x73, 0x4a, 0x92, 0x66, 0x65, 0xb7, 0xbc, 0x3f, 0xcd, + 0x7b, 0x7d, 0x04, 0xc6, 0xb4, 0xa5, 0x2f, 0xa5, 0x66, 0xad, 0x56, 0x46, 0xf1, 0xd8, 0xa3, 0xfc, + 0x0a, 0x86, 0x55, 0x4b, 0xb4, 0xe6, 0x63, 0x60, 0xcb, 0x8c, 0x4d, 0x59, 0x71, 0x8a, 0x6c, 0x69, + 0x11, 0x66, 0x47, 0x1e, 0x61, 0xfe, 0x0b, 0xc7, 0xa5, 0x6a, 0x1a, 0x21, 0xd7, 0x3c, 0xf8, 0x9d, + 0x75, 0x34, 0x4f, 0x67, 0xdd, 0xad, 0x8e, 0xc4, 0xee, 0x2e, 0x0e, 0x51, 0x65, 0x54, 0x9b, 0x0d, + 0xa6, 0xac, 0x48, 0xd0, 0x9d, 0xf9, 0x05, 0x9c, 0x2c, 0x6a, 0x4d, 0x2b, 0x53, 0x2b, 0x99, 0x45, + 0x53, 0x56, 0xa4, 0xd8, 0x13, 0x56, 0xb5, 0xae, 0xfb, 0x8d, 0x21, 0x9d, 0x0d, 0xbd, 0xba, 0x27, + 0xf2, 0x27, 0x80, 0xf7, 0xad, 0xd1, 0xa2, 0x52, 0xb2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