-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoriginal_command_with_hash.proto
73 lines (63 loc) · 1.72 KB
/
original_command_with_hash.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
syntax = "proto2";
import "dccl/option_extensions.proto";
package moos.dawg;
message OriginalCommandWithHash
{
option (dccl.msg) = {
id: 124
max_bytes: 32
codec_version: 4
unit_system: "si"
};
enum Action
{
MEASURE_THERMOCLINE = 1;
SEARCH_FOR_OCEAN_FRONT = 2;
SEARCH_FOR_MISSING_AIRPLANE = 3;
}
message ThermoclineParams
{
required int32 max_search_depth = 1 [(dccl.field) = {
min: 10
max: 1000
units: { derived_dimensions: "length" }
}];
}
message FrontParams
{
required double temperature_threshold = 1 [(dccl.field) = {
min: 0.1
max: 2
resolution: 0.1
units {
derived_dimensions: "temperature"
system: "celsius"
relative_temperature: true
}
}];
}
message PlaneParams
{
required int32 center_freq = 1 [(dccl.field) = {
min: 30000
max: 40000
resolution: 100
units { derived_dimensions: "frequency" }
}];
required int32 bandwidth = 2 [(dccl.field) = {
min: 100
max: 10000
resolution: 100
units { derived_dimensions: "frequency" }
}];
}
required Action action = 1;
oneof parameters
{
ThermoclineParams thermocline = 2; // for action == MEASURE_THERMOCLINE
FrontParams front = 3; // for action == SEARCH_FOR_OCEAN_FRONT
PlaneParams airplane = 4; // for action == SEARCH_FOR_MISSING_AIRPLANE
}
required uint32 hash = 5
[(dccl.field).codec = "dccl.hash", (dccl.field).max = 0xFFFF];
}