2import "dccl/option_extensions.proto";
3import "goby/middleware/protobuf/geographic.proto";
5package goby.middleware.frontseat.protobuf;
13 required double time = 1 [(dccl.field).units.derived_dimensions = "time"];
14 optional string name = 2;
15 optional VehicleType type = 3;
18 required .goby.middleware.protobuf.LatLonPoint global_fix = 10;
19 // x, y, z on local cartesian grid
20 optional CartesianCoordinate local_fix = 11;
23 required EulerAngles pose = 20;
25 required Speed speed = 30;
27 optional Source source = 40;
29 extensions 1000 to max;
34 option (dccl.msg).unit_system = "si";
36 required double time = 1 [(dccl.field).units.derived_dimensions = "time"];
37 optional double heading = 2 [
39 (dccl.field).units.derived_dimensions = "plane_angle",
40 (dccl.field).units.system = "angle::degree"
42 optional double speed = 3
43 [default = 0, (dccl.field).units.derived_dimensions = "length/time"];
44 optional double depth = 4
45 [default = 0, (dccl.field).units.derived_dimensions = "length"];
46 optional double pitch = 5 [
48 (dccl.field).units.derived_dimensions = "plane_angle",
49 (dccl.field).units.system = "angle::degree"
52 optional double roll = 6 [
54 (dccl.field).units.derived_dimensions = "plane_angle",
55 (dccl.field).units.system = "angle::degree"
58 optional double z_rate = 7
59 [default = 0, (dccl.field).units.derived_dimensions = "length/time"];
60 // deliberately non-zero: if read without has_altitude(), 10 m off the bottom is safer
62 optional double altitude = 8
63 [default = 10, (dccl.field).units.derived_dimensions = "length"];
65 extensions 1000 to max;
68// Type of vehicle for a given node
85 MOORING_SUBSURFACE = 62;
100 INERTIAL_NAVIGATION_SYSTEM = 4;
107 MAGNETIC_COMPASS = 40;
110 optional Sensor position = 1;
111 optional Sensor depth = 2;
112 optional Sensor speed = 3;
113 optional Sensor heading = 4;
115 extensions 1000 to max;
118// computed from LatLonPoint
119message CartesianCoordinate
121 option (dccl.msg).unit_system = "si";
123 required double x = 1 [(dccl.field).units.derived_dimensions = "length"];
124 required double y = 2 [(dccl.field).units.derived_dimensions = "length"];
125 optional double z = 3
126 [(dccl.field).units.derived_dimensions = "length", default = 0];
128 extensions 1000 to max;
133 option (dccl.msg).unit_system = "si";
135 optional double roll = 1 [(dccl.field) = {
136 units { derived_dimensions: "plane_angle" system: "angle::degree" }
138 optional double pitch = 2 [(dccl.field) = {
139 units { derived_dimensions: "plane_angle" system: "angle::degree" }
141 optional double heading = 3 [(dccl.field) = {
142 units { derived_dimensions: "plane_angle" system: "angle::degree" }
144 optional double course_over_ground = 4 [(dccl.field) = {
145 units { derived_dimensions: "plane_angle" system: "angle::degree" }
148 optional double roll_rate = 10 [(dccl.field) = {
151 unit: "dccl::units::degrees_per_second_unit"
152 header: "dccl/units/degrees.h"
157 optional double pitch_rate = 11 [(dccl.field) = {
160 unit: "dccl::units::degrees_per_second_unit"
161 header: "dccl/units/degrees.h"
165 optional double heading_rate = 12 [(dccl.field) = {
168 unit: "dccl::units::degrees_per_second_unit"
169 header: "dccl/units/degrees.h"
174 extensions 1000 to max;
179 option (dccl.msg).unit_system = "si";
181 required double over_ground = 1
182 [(dccl.field).units.derived_dimensions = "length/time"];
183 optional double over_water = 2
184 [(dccl.field).units.derived_dimensions = "length/time"];
186 extensions 1000 to max;
191 option (dccl.msg).unit_system = "si";
193 required double time = 2 [(dccl.field).units.base_dimensions = "T"];
195 // required "primary" measurements
196 optional double conductivity = 10
197 [(dccl.field).units = { derived_dimensions: "conductivity" }];
198 required double temperature = 11 [(dccl.field).units = {
200 derived_dimensions: "temperature"
203 required double pressure = 12
204 [(dccl.field).units = { base_dimensions: "M L^-1 T^-2" }];
206 // required "secondary" or calculated quantities (can be
207 // calculated from "primary" measurements alone using empirical
209 required double salinity = 20
210 [(dccl.field).units = { base_dimensions: "-" }];
211 required double sound_speed = 21
212 [(dccl.field).units = { base_dimensions: "L T^-1" }];
213 required double density = 22
214 [(dccl.field).units = { base_dimensions: "M L^-3" }];
216 required .goby.middleware.protobuf.LatLonPoint global_fix = 23;
218 // algorithm used for secondary quantities
219 enum SalinityAlgorithm
221 SAL_ALGORITHM_UNKNOWN = 0;
222 UNESCO_44_PREKIN_AND_LEWIS_1980 = 1;
224 optional SalinityAlgorithm salinity_algorithm = 30
225 [default = SAL_ALGORITHM_UNKNOWN];
227 enum SoundSpeedAlgorithm
229 SS_ALGORITHM_UNKNOWN = 0;
230 UNESCO_44_CHEN_AND_MILLERO_1977 = 1;
234 optional SoundSpeedAlgorithm sound_speed_algorithm = 31
235 [default = SS_ALGORITHM_UNKNOWN];
237 enum DensityAlgorithm
239 DENSITY_ALGORITHM_UNKNOWN = 0;
240 UNESCO_38_MILLERO_AND_POISSON_1981 = 1;
242 optional DensityAlgorithm density_algorithm = 32
243 [default = DENSITY_ALGORITHM_UNKNOWN];
245 extensions 1000 to max;
250 option (dccl.msg) = {
254 required .goby.middleware.protobuf.LatLonPoint datum = 1;