24 #include "../../acomms/driver_tester/driver_tester.h" 25 #include "goby/acomms/modemdriver/benthos_atm900_driver.h" 27 boost::shared_ptr<goby::acomms::ModemDriverBase> driver1, driver2;
29 int main(
int argc,
char* argv[])
47 modem1_cfg.set_modem_id(1);
48 modem2_cfg.set_modem_id(2);
50 modem1_cfg.set_serial_port(
"/dev/ttyUSB0");
51 modem2_cfg.set_serial_port(
"/dev/ttyUSB1");
54 modem1_cfg.AddExtension(benthos::protobuf::BenthosATM900DriverConfig::config,
"@SimAcDly=1000");
55 modem2_cfg.AddExtension(benthos::protobuf::BenthosATM900DriverConfig::config,
"@SimAcDly=1000");
58 modem1_cfg.AddExtension(benthos::protobuf::BenthosATM900DriverConfig::config,
"@TxPower=1");
59 modem2_cfg.AddExtension(benthos::protobuf::BenthosATM900DriverConfig::config,
"@TxPower=1");
62 modem1_cfg.AddExtension(benthos::protobuf::BenthosATM900DriverConfig::config,
63 "@IdleTimer=00:00:05");
64 modem2_cfg.AddExtension(benthos::protobuf::BenthosATM900DriverConfig::config,
65 "@IdleTimer=00:00:05");
67 std::vector<int> tests_to_run;
68 tests_to_run.push_back(0);
69 tests_to_run.push_back(4);
70 tests_to_run.push_back(5);
72 DriverTester tester(driver1, driver2, modem1_cfg, modem2_cfg, tests_to_run,
73 goby::acomms::protobuf::DRIVER_BENTHOS_ATM900);
void set_name(const std::string &s)
Set the name of the application that the logger is serving.
common::FlexOstream glog
Access the Goby logger through this object.
void add_stream(logger::Verbosity verbosity=logger::VERBOSE, std::ostream *os=0)
Attach a stream object (e.g. std::cout, std::ofstream, ...) to the logger with desired verbosity...