aboutsummaryrefslogtreecommitdiff
path: root/elegoo.proto
blob: f553ce8f08c118b12eb3cd9341f0bd71c71beb71 (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
syntax = "proto3";

package elegoo;

option go_package = "main";

message Speed {
	sint32 L = 1;		// -255 .. + 255
	sint32 R = 2;		// -255 .. + 255
}

message Command {
	Speed Speed = 1;
	bool Stop = 3;
	uint32 Direction = 4;	// deg: 0 right .. 180 left
	uint32 StopAfter = 5;	// milliseconds
}

message Sensor {
	bool R = 1;
	bool C = 2;
	bool L = 3;
}

message Events {
	uint32 Distance = 1;	// cm
	sint32 Direction = 2;	// deg
	Sensor Sensor = 3;
	uint32 KeyPress = 6;
	uint32 Time = 7;	// milliseconds
}