Goby Underwater Autonomy Project
Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
|
provides an API to the WHOI Micro-Modem driver More...
#include <goby/acomms/modem_driver.h>
Inherits goby::acomms::ModemDriverBase.
Public Member Functions | |
MMDriver (std::ostream *log=0) | |
Default constructor. | |
~MMDriver () | |
Destructor. | |
void | startup (const protobuf::DriverConfig &cfg) |
Starts the driver. | |
void | shutdown () |
Shuts down the modem driver. | |
void | do_work () |
Must be called regularly for the driver to perform its work. 10 Hz is good, but less frequently is fine too. Signals will be emitted only during calls to this method. | |
void | handle_initiate_transmission (protobuf::ModemMsgBase *m) |
Initiate a transmission to the modem. | |
void | handle_initiate_ranging (protobuf::ModemRangingRequest *m) |
Initiate ranging ("ping") to the modem. |
provides an API to the WHOI Micro-Modem driver
Definition at line 37 of file mm_driver.h.
goby::acomms::MMDriver::MMDriver | ( | std::ostream * | log = 0 | ) |
Default constructor.
log | std::ostream object or FlexOstream to capture all humanly readable runtime and debug information (optional). |
Definition at line 52 of file mm_driver.cpp.
void goby::acomms::MMDriver::startup | ( | const protobuf::DriverConfig & | cfg | ) | [virtual] |
Starts the driver.
cfg | Configuration for the Micro-Modem driver. DriverConfig is defined in driver_base.proto, and various extensions specific to the WHOI Micro-Modem are defined in mm_driver.proto. |
Implements goby::acomms::ModemDriverBase.
Definition at line 68 of file mm_driver.cpp.