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

option go_package = "main";

message Command {
	int32 LeftSpeed = 1;
	int32 RightSpeed = 2;
	sint32 TurnHead = 3; // ±90 deg
	bool Center = 4;
}

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