From 4ae462c9e0469dc4572a54e8271ae24404a69db7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 11 Dec 2017 22:18:31 +0100 Subject: ... --- elegoo.proto | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'elegoo.proto') 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 } -- cgit v1.2.3