Move bearing into proto file

This commit is contained in:
Marc Di Luzio 2020-07-19 12:54:41 +01:00
parent 3796ee09a3
commit 4e0e55af88
10 changed files with 281 additions and 306 deletions

View file

@ -101,15 +101,24 @@ enum CommandType {
broadcast = 5;
}
enum Bearing {
// BearingUnknown an unknown invalid bearing
BearingUnknown = 0;
North = 1;
East = 2;
South = 3;
West = 4;
}
// Command is a single command for a rover
message Command {
// The command type
CommandType command = 1;
oneof data {
// A bearing, example: NE
// A bearing
// Used with MOVE
string bearing = 2;
Bearing bearing = 2;
// A simple message, must be composed of printable ASCII glyphs (32-126)
// maximum of three characters