From e67941510e6e7ea6439c97397ba7fbe8d6db7608 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 7 Jun 2018 20:25:25 +0200 Subject: [PATCH] Adjust number of decimals shown in terminal --- src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc index 2863795ca..1fc243cb3 100644 --- a/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc +++ b/src/algorithms/PVT/gnuradio_blocks/rtklib_pvt_cc.cc @@ -2091,9 +2091,9 @@ int rtklib_pvt_cc::work(int noutput_items, gr_vector_const_void_star& input_item std::cout << TEXT_BOLD_GREEN << "Position at " << d_ls_pvt->get_position_UTC_time() << " UTC using " << d_ls_pvt->get_num_valid_observations() - << std::setprecision(10) + << std::fixed << std::setprecision(9) << " observations is Lat = " << d_ls_pvt->get_latitude() << " [deg], Long = " << d_ls_pvt->get_longitude() - << std::setprecision(4) + << std::fixed << std::setprecision(3) << " [deg], Height = " << d_ls_pvt->get_height() << " [m]" << TEXT_RESET << std::endl; std::cout << std::setprecision(ss); LOG(INFO) << "RX clock offset: " << d_ls_pvt->get_time_offset_s() << "[s]";