aboutsummaryrefslogtreecommitdiff
path: root/elegoo.proto
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-27 00:49:24 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-27 00:49:24 +0200
commit64a552f7a69e20c174f929c5d4e800aa24b480f3 (patch)
tree2e27e65e623021904fcce43b2382ecd7d95e6baa /elegoo.proto
parente4cabee7b53ba8f71826b79cc09b3ecba1a02f13 (diff)
Make go getable
Diffstat (limited to 'elegoo.proto')
-rw-r--r--elegoo.proto23
1 files changed, 23 insertions, 0 deletions
diff --git a/elegoo.proto b/elegoo.proto
new file mode 100644
index 0000000..7cfd826
--- /dev/null
+++ b/elegoo.proto
@@ -0,0 +1,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
+}