23 #ifndef WavegliderSV2FrontSeat20150909H 24 #define WavegliderSV2FrontSeat20150909H 26 #include <boost/bimap.hpp> 27 #include <boost/circular_buffer.hpp> 30 #include "goby/util/linebasedcomms/tcp_client.h" 32 #include "goby/moos/frontseat/frontseat.h" 34 #include "waveglider_sv2_frontseat_driver.pb.h" 35 #include "waveglider_sv2_frontseat_driver_config.pb.h" 36 #include "waveglider_sv2_serial_client.h" 54 goby::moos::protobuf::FrontSeatState frontseat_state()
const;
55 bool frontseat_providing_data()
const;
56 void handle_sv2_message(
const std::string& message);
62 void check_crc(
const std::string& message, uint16_t expected);
63 void add_crc(std::string* message);
67 void check_connection_state();
72 bool frontseat_providing_data_;
73 double last_frontseat_data_time_;
74 goby::moos::protobuf::FrontSeatState frontseat_state_;
76 boost::asio::io_service io_;
77 boost::shared_ptr<goby::moos::SV2SerialConnection> serial_;
79 boost::circular_buffer<boost::shared_ptr<goby::moos::protobuf::SV2CommandFollowFixedHeading> >