aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo/elegoo.proto
blob: bdf1b9575d85bb60dc34fc366e55e9a51b1de7fb (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 TurnHead = 5; // ±90 deg
	sint32 Trim = 6;
}

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