aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo/elegoo.proto
blob: f9b13bf0004cb71c4516edb62c0484320df8737a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}

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