aboutsummaryrefslogtreecommitdiff
path: root/car/elegoo/elegoo.proto
diff options
context:
space:
mode:
Diffstat (limited to 'car/elegoo/elegoo.proto')
-rw-r--r--car/elegoo/elegoo.proto15
1 files changed, 7 insertions, 8 deletions
diff --git a/car/elegoo/elegoo.proto b/car/elegoo/elegoo.proto
index a25f592..7cfd826 100644
--- a/car/elegoo/elegoo.proto
+++ b/car/elegoo/elegoo.proto
@@ -5,20 +5,19 @@ syntax = "proto3";
option go_package = "main";
message Command {
- sint32 SpeedR = 1;
- sint32 SpeedL = 2;
+ sint32 SpeedR = 1; // -255 .. +255
+ sint32 SpeedL = 2; // -255 .. +255
bool Stop = 3;
- bool Center = 4;
- sint32 Direction = 5; // +90 left; -90 right
- uint32 StopAfter = 6; // milliseconds
+ uint32 Direction = 4; // deg: 0 right .. 180 left
+ uint32 StopAfter = 5; // milliseconds
}
message Events {
- uint32 Distance = 1;
- sint32 Direction = 2;
+ uint32 Distance = 1; // cm
+ sint32 Direction = 2; // deg
bool SensorR = 3;
bool SensorC = 4;
bool SensorL = 5;
uint32 KeyPress = 6;
- uint32 Time = 7;
+ uint32 Time = 7; // milliseconds
}