22 #ifndef GNSS_SDR_NMEA_PRINTER_H 23 #define GNSS_SDR_NMEA_PRINTER_H 25 #include <boost/date_time/posix_time/ptime.hpp> 50 Nmea_Printer(
const std::string& filename,
bool flag_nmea_output_file,
bool flag_nmea_tty_port, std::string nmea_dump_devname,
const std::string& base_path =
".");
63 int init_serial(
const std::string& serial_device);
64 void close_serial()
const;
65 std::string get_GPGGA()
const;
66 std::string get_GPGSV()
const;
67 std::string get_GPGSA()
const;
68 std::string get_GPRMC()
const;
69 std::string get_UTC_NMEA_time(
const boost::posix_time::ptime d_position_UTC_time)
const;
70 std::string longitude_to_hm(
double longitude)
const;
71 std::string latitude_to_hm(
double lat)
const;
72 char checkSum(
const std::string& sentence)
const;
76 std::ofstream nmea_file_descriptor;
78 std::string nmea_filename;
79 std::string nmea_base_path;
80 std::string nmea_devname;
82 int nmea_dev_descriptor;
83 bool d_flag_nmea_output_file;
89 #endif // GNSS_SDR_NMEA_PRINTER_H ~Nmea_Printer()
Default destructor.
This class implements a PVT solution based on RTKLIB.
This class provides a implementation of a subset of the NMEA-0183 standard for interfacing marine ele...
bool Print_Nmea_Line(const Rtklib_Solver *const pvt_data)
Print NMEA PVT and satellite info to the initialized device.
Nmea_Printer(const std::string &filename, bool flag_nmea_output_file, bool flag_nmea_tty_port, std::string nmea_dump_devname, const std::string &base_path=".")
Default constructor.