aboutsummaryrefslogtreecommitdiff
path: root/elegoo.proto
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-12-11 22:18:31 +0100
committerDimitri Sokolyuk <demon@dim13.org>2017-12-11 22:18:31 +0100
commit4ae462c9e0469dc4572a54e8271ae24404a69db7 (patch)
treeb9fc4be95ae43e9565759c2878525283d2b9aa15 /elegoo.proto
parentb55a08cd6aba0364d8ef4c450f8aeb057bb936ee (diff)
...
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
}