2// GobySoft, LLC (2013-)
3// Community contributors (see AUTHORS file)
5// Toby Schneider <toby@gobysoft.org>
6// Stephanie Petillo <stephanie@gobysoft.org>
7// Chris Murphy <cmurphy@aphysci.com>
10// This file is part of the Dynamic Compact Control Language Library
13// DCCL is free software: you can redistribute it and/or modify
14// it under the terms of the GNU Lesser General Public License as published by
15// the Free Software Foundation, either version 2.1 of the License, or
16// (at your option) any later version.
18// DCCL is distributed in the hope that it will be useful,
19// but WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21// GNU Lesser General Public License for more details.
23// You should have received a copy of the GNU Lesser General Public License
24// along with DCCL. If not, see <http://www.gnu.org/licenses/>.
26import "dccl/option_extensions.proto";
30 option (dccl.msg).unit_system = "si";
32 required int32 conductivity = 1 [(dccl.field) = {
37 unit: "dccl::units::microsiemens_per_cm_unit"
38 header: "dccl/units/conductivity.h"
43 required double temperature = 3 [(dccl.field) = {
45 derived_dimensions: "temperature"
54 required double micro_temp = 5 [(dccl.field) = {
58 relative_temperature: true
65 required int32 pressure = 4
66 [(dccl.field).units.derived_dimensions = "pressure"];
68 required double salinity = 10 [(dccl.field).units.base_dimensions = "-"];
69 required double sound_speed = 11
70 [(dccl.field).units.base_dimensions = " LT^-1"];
71 optional double density = 12
72 [(dccl.field).units.base_dimensions = "M L^-3"];
74 required int32 depth = 13 [(dccl.field) = {
75 units { derived_dimensions: "length" prefix: "kilo" }
80 required double auv_speed = 14 [(dccl.field).units.unit = "metric::knot"];
85 option (dccl.msg).unit_system = "cgs";
87 required int32 mass = 1
88 [(dccl.field).units.base_dimensions = "M"]; // should be grams
89 required int32 si_mass = 2 [
90 (dccl.field) = { units { system: "si" base_dimensions: "M" } }
91 ]; // should be kilograms
93 required Child child = 3;
97 required int32 length = 1 [(dccl.field).units.derived_dimensions =
98 "length"]; // should be centimeters
104 required int32 length = 1 [
105 (dccl.field).units.derived_dimensions = "length",
106 (dccl.field).units.system = "si"