DCCL v3
command_message.proto
1 
2 import "dccl/option_extensions.proto";
3 
4 message CommandMessage
5 {
6  option (dccl.msg) = { id: 125 max_bytes: 32 codec_version: 3 unit_system: "si"};
7 
8 
9  required int32 destination = 1 [(dccl.field) = { max: 31 min: 0 in_head: true }];
10  optional string description = 2 [(dccl.field).omit = true];
11  enum SonarPower { NOMINAL = 10; LOW = 5; OFF = 0; }
12  optional SonarPower sonar_power = 10;
13  required double speed = 11 [(dccl.field) = { units { base_dimensions: "LT^-1" }
14  max: 2.0 min: -0.5 precision: 1 }];
15  repeated int32 waypoint_depth = 12
16  [(dccl.field) = { units { base_dimensions: "L" }
17  max: 40 min: 0 max_repeat: 4 }];
18 }
19