add protobuf

This commit is contained in:
sessionm21 2020-04-28 21:18:17 +01:00
parent e95297fe93
commit 5dc3587ccb

26
message.proto Normal file
View File

@ -0,0 +1,26 @@
syntax = "proto2";
package Fenceless;
message Coordinate {
required float x = 1;
required float y = 2;
}
message CollarResponse {
required Coordinate loc = 1;
}
message Coordinates {
required int32 isr = 1;
required Coordinate coord0 = 2;
required Coordinate coord1 = 3;
required Coordinate coord2 = 4;
optional Coordinate coord3 = 5;
optional Coordinate coord4 = 6;
optional Coordinate coord5 = 7;
optional Coordinate coord6 = 8;
optional Coordinate coord7 = 9;
optional Coordinate coord8 = 10;
optional Coordinate coord9 = 11;
}