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



option go_package = "main";

message Command {
	sint32 SpeedR = 1;
	sint32 SpeedL = 2;
	bool Stop = 3;
	bool Center = 4;
	sint32 Direction = 5; // +90 left; -90 right
	uint32 StopAfter = 6; // milliseconds
}

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