Goby3
3.2.3
2025.05.13
Loading...
Searching...
No Matches
driver_helpers.h
Go to the documentation of this file.
1
// Copyright 2024-2025:
2
// GobySoft, LLC (2013-)
3
// Community contributors (see AUTHORS file)
4
// File authors:
5
// Jared Silbermann <jared.silbermann@missionsystems.com.au>
6
// Toby Schneider <toby@gobysoft.org>
7
//
8
//
9
// This file is part of the Goby Underwater Autonomy Project Libraries
10
// ("The Goby Libraries").
11
//
12
// The Goby Libraries are free software: you can redistribute them and/or modify
13
// them 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
// The Goby Libraries are distributed in the hope that they 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 Goby. If not, see <http://www.gnu.org/licenses/>.
24
25
// Converts the dccl binary to the required comma seperated bytes -- duplication from popoto driver (will fix)
26
#include "
goby/acomms/modemdriver/driver_base.h
"
// for ModemDriverBase
27
#include "
goby/acomms/protobuf/driver_base.pb.h
"
// for DriverConfig
28
#include "
goby/acomms/protobuf/modem_message.pb.h
"
// for ModemTransmi...
29
#include "
goby/acomms/protobuf/modem_message.pb.h
"
// for ModemTransmission
30
#include "
goby/exception.h
"
// for Exception
31
#include "
goby/util/thirdparty/nlohmann/json.hpp
"
// for json
32
#include <string>
33
using
json
= nlohmann::json;
34
35
namespace
goby
36
{
37
namespace
acomms
38
{
39
40
// Used by Mission Systems Popoto and Janus drivers
41
enum
GobyHeaderBits
42
{
43
GOBY_DATA_TYPE
= 1,
44
GOBY_ACK_TYPE
= 2,
45
GOBY_HEADER_TYPE
= 0,
// 0 == Data, 1 == Ack
46
GOBY_HEADER_ACK_REQUEST
= 1
// 0 == no ack requested, 1 == ack requested
47
};
48
}
49
}
// namespace goby
driver_base.h
driver_base.pb.h
json
nlohmann::json json
Definition
driver_helpers.h:33
exception.h
json.hpp
modem_message.pb.h
goby::acomms::GobyHeaderBits
GobyHeaderBits
Definition
driver_helpers.h:42
goby::acomms::GOBY_ACK_TYPE
@ GOBY_ACK_TYPE
Definition
driver_helpers.h:44
goby::acomms::GOBY_DATA_TYPE
@ GOBY_DATA_TYPE
Definition
driver_helpers.h:43
goby::acomms::GOBY_HEADER_ACK_REQUEST
@ GOBY_HEADER_ACK_REQUEST
Definition
driver_helpers.h:46
goby::acomms::GOBY_HEADER_TYPE
@ GOBY_HEADER_TYPE
Definition
driver_helpers.h:45
goby
The global namespace for the Goby project.
Definition
acomms_constants.h:34
goby
acomms
modemdriver
driver_helpers.h
Generated by
1.9.8