From f1a77dfb1fa4d833c35dc631de491ea5a84a22ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Cebri=C3=A1n=20Juan?= Date: Sat, 5 May 2018 07:47:42 +0200 Subject: [PATCH] Initialize gpx printer in RTKLIB_PVT block --- src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc | 7 +++++++ src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc index 91267e33d..18248ea05 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc @@ -261,6 +261,12 @@ rtklib_pvt_cc::rtklib_pvt_cc(unsigned int nchannels, bool dump, std::string dump d_kml_dump = std::make_shared(); d_kml_dump->set_headers(kml_dump_filename); + //initialize gpx_printer + std::string gpx_dump_filename; + gpx_dump_filename = d_dump_filename; + d_gpx_dump = std::make_shared(); + d_gpx_dump->set_headers(gpx_dump_filename); + //initialize geojson_printer std::string geojson_dump_filename; geojson_dump_filename = d_dump_filename; @@ -678,6 +684,7 @@ int rtklib_pvt_cc::work(int noutput_items, gr_vector_const_void_star& input_item first_fix = false; } d_kml_dump->print_position(d_ls_pvt, false); + d_gpx_dump->print_position(d_ls_pvt, false); d_geojson_printer->print_position(d_ls_pvt, false); d_nmea_printer->Print_Nmea_Line(d_ls_pvt, false); diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.h b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.h index f4e4323fd..70333a7eb 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.h +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.h @@ -34,6 +34,7 @@ #include "nmea_printer.h" #include "kml_printer.h" +#include "gpx_printer.h" #include "geojson_printer.h" #include "rinex_printer.h" #include "rtcm_printer.h" @@ -120,6 +121,7 @@ private: std::shared_ptr rp; std::shared_ptr d_kml_dump; + std::shared_ptr d_gpx_dump; std::shared_ptr d_nmea_printer; std::shared_ptr d_geojson_printer; std::shared_ptr d_rtcm_printer;