aboutsummaryrefslogtreecommitdiff
path: root/elegoo.proto
diff options
context:
space:
mode:
Diffstat (limited to 'elegoo.proto')
-rw-r--r--elegoo.proto22
1 files changed, 15 insertions, 7 deletions
diff --git a/elegoo.proto b/elegoo.proto
index f553ce8..51a550c 100644
--- a/elegoo.proto
+++ b/elegoo.proto
@@ -16,16 +16,24 @@ message Command {
uint32 StopAfter = 5; // milliseconds
}
-message Sensor {
+message UltraSonic {
+ uint32 Distance = 1; // cm
+ sint32 Direction = 2; // deg
+}
+
+message InfraRed {
bool R = 1;
bool C = 2;
bool L = 3;
}
-message Events {
- uint32 Distance = 1; // cm
- sint32 Direction = 2; // deg
- Sensor Sensor = 3;
- uint32 KeyPress = 6;
- uint32 Time = 7; // milliseconds
+message RemoteControl {
+ uint32 Key = 1;
+}
+
+message Event {
+ UltraSonic Head = 1;
+ InfraRed Sensor = 2;
+ RemoteControl Remote = 3;
+ uint32 TimeStamp = 4; // milliseconds
}