aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo/elegoo.pb.go
blob: a0e97041c3de224020859b74e662e2c2dc3a1f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: elegoo.proto

/*
Package main is a generated protocol buffer package.

It is generated from these files:
	elegoo.proto

It has these top-level messages:
	Command
	Event
*/
package main

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package

type Command struct {
	SpeedR   int32 `protobuf:"zigzag32,1,opt,name=SpeedR" json:"SpeedR,omitempty"`
	SpeedL   int32 `protobuf:"zigzag32,2,opt,name=SpeedL" json:"SpeedL,omitempty"`
	Stop     bool  `protobuf:"varint,3,opt,name=Stop" json:"Stop,omitempty"`
	TurnHead int32 `protobuf:"zigzag32,4,opt,name=TurnHead" json:"TurnHead,omitempty"`
	Center   bool  `protobuf:"varint,5,opt,name=Center" json:"Center,omitempty"`
}

func (m *Command) Reset()                    { *m = Command{} }
func (m *Command) String() string            { return proto.CompactTextString(m) }
func (*Command) ProtoMessage()               {}
func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }

func (m *Command) GetSpeedR() int32 {
	if m != nil {
		return m.SpeedR
	}
	return 0
}

func (m *Command) GetSpeedL() int32 {
	if m != nil {
		return m.SpeedL
	}
	return 0
}

func (m *Command) GetStop() bool {
	if m != nil {
		return m.Stop
	}
	return false
}

func (m *Command) GetTurnHead() int32 {
	if m != nil {
		return m.TurnHead
	}
	return 0
}

func (m *Command) GetCenter() bool {
	if m != nil {
		return m.Center
	}
	return false
}

type Event struct {
	Distance uint32 `protobuf:"varint,1,opt,name=Distance" json:"Distance,omitempty"`
	SensorR  bool   `protobuf:"varint,2,opt,name=SensorR" json:"SensorR,omitempty"`
	SensorC  bool   `protobuf:"varint,3,opt,name=SensorC" json:"SensorC,omitempty"`
	SensorL  bool   `protobuf:"varint,4,opt,name=SensorL" json:"SensorL,omitempty"`
	KeyPress uint32 `protobuf:"varint,5,opt,name=KeyPress" json:"KeyPress,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{1} }

func (m *Event) GetDistance() uint32 {
	if m != nil {
		return m.Distance
	}
	return 0
}

func (m *Event) GetSensorR() bool {
	if m != nil {
		return m.SensorR
	}
	return false
}

func (m *Event) GetSensorC() bool {
	if m != nil {
		return m.SensorC
	}
	return false
}

func (m *Event) GetSensorL() bool {
	if m != nil {
		return m.SensorL
	}
	return false
}

func (m *Event) GetKeyPress() uint32 {
	if m != nil {
		return m.KeyPress
	}
	return 0
}

func init() {
	proto.RegisterType((*Command)(nil), "Command")
	proto.RegisterType((*Event)(nil), "Event")
}

func init() { proto.RegisterFile("elegoo.proto", fileDescriptor0) }

var fileDescriptor0 = []byte{
	// 212 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0xcd, 0x49, 0x4d,
	0xcf, 0xcf, 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