DCCL v4
Loading...
Searching...
No Matches
ctd_message_units.proto
1// Copyright 2015-2023:
2// GobySoft, LLC (2013-)
3// Community contributors (see AUTHORS file)
4// File authors:
5// Toby Schneider <toby@gobysoft.org>
6// Chris Murphy <cmurphy@aphysci.com>
7//
8//
9// This file is part of the Dynamic Compact Control Language Library
10// ("DCCL").
11//
12// DCCL is free software: you can redistribute it and/or modify
13// it under the terms of the GNU Lesser General Public License as published by
14// the Free Software Foundation, either version 2.1 of the License, or
15// (at your option) any later version.
16//
17// DCCL is distributed in the hope that it will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20// GNU Lesser General Public License for more details.
21//
22// You should have received a copy of the GNU Lesser General Public License
23// along with DCCL. If not, see <http://www.gnu.org/licenses/>.
24syntax = "proto2";
25import "dccl/option_extensions.proto";
26
27message CTDMessage
28{
29 option (dccl.msg) = {
30 id: 123
31 max_bytes: 32
32 codec_version: 4
33 unit_system: "si"
34 };
35
36 required double temperature = 1 [(dccl.field) = {
37 units { derived_dimensions: "temperature" system: "celsius" }
38 min: 0
39 max: 30
40 precision: 1
41 }];
42
43 required int32 depth = 2 [(dccl.field) = {
44 units { derived_dimensions: "length" system: "si" }
45 min: 0
46 max: 6000
47 }];
48
49 required double salinity = 4 [(dccl.field) = {
50 min: 10
51 max: 40
52 precision: 1
53 units { base_dimensions: "-" }
54 }];
55
56 required double sound_speed = 5 [(dccl.field) = {
57 units { base_dimensions: "LT^-1" system: "si" }
58 min: 1450
59 max: 1550
60 precision: 1
61 }];
62}