aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo/elegoo.proto
blob: 7cfd8264949d43b4447c6eefa9a45fe6524b4d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
syntax = "proto3";



option go_package = "main";

message Command {
	sint32 SpeedR = 1;	// -255 .. +255
	sint32 SpeedL = 2;	// -255 .. +255
	bool Stop = 3;
	uint32 Direction = 4;	// deg: 0 right .. 180 left
	uint32 StopAfter = 5;	// milliseconds
}

message Events {
	uint32 Distance = 1;	// cm
	sint32 Direction = 2;	// deg
	bool SensorR = 3;
	bool SensorC = 4;
	bool SensorL = 5;
	uint32 KeyPress = 6;
	uint32 Time = 7;	// milliseconds
}