Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
time_update.proto
Go to the documentation of this file.
1syntax = "proto2";
2import "dccl/option_extensions.proto";
3
4package goby.acomms.protobuf;
5
6message TimeUpdateRequest
7{
8 option (dccl.msg).id = 0x0204;
9 option (dccl.msg).max_bytes = 32;
10 option (dccl.msg).codec_version = 3;
11
12 required int32 src = 1 [
13 (dccl.field).min = 1,
14 (dccl.field).max = 32,
15 (dccl.field).in_head = true
16 ];
17 optional int32 dest = 2 [
18 (dccl.field).min = 1,
19 (dccl.field).max = 32,
20 (dccl.field).in_head = true
21 ];
22
23 required uint64 time = 3
24 [(dccl.field).codec = "_time", (dccl.field).in_head = true];
25
26 required int32 update_time_for_id = 4 [
27 (dccl.field).min = 1,
28 (dccl.field).max = 32,
29 (dccl.field).in_head = true
30 ];
31}
32
33message TimeUpdateResponse
34{
35 option (dccl.msg).id = 0x0205;
36 option (dccl.msg).max_bytes = 32;
37 option (dccl.msg).codec_version = 3;
38
39 required int32 src = 1 [
40 (dccl.field).min = 1,
41 (dccl.field).max = 32,
42 (dccl.field).in_head = true
43 ];
44 optional int32 dest = 2 [
45 (dccl.field).min = 1,
46 (dccl.field).max = 32,
47 (dccl.field).in_head = true
48 ];
49
50 required uint64 time = 3 [
51 (dccl.field).codec = "_time",
52 (dccl.field).in_head = true,
53 (dccl.field).precision = -3
54 ];
55
56 required uint64 time_of_flight_microsec = 4 [
57 (dccl.field).min = 0,
58 (dccl.field).max = 20000000,
59 (dccl.field).precision = -3
60 ]; // microsec correction applied to `time` field - good for 20 sec (about
61 // 30km)
62
63 optional int32 request_src = 5 [(dccl.field).omit = true];
64}