From 0dab0311277f3c9ab26b698424d041e432004f49 Mon Sep 17 00:00:00 2001 From: "M.A. Gomez" Date: Sat, 11 Mar 2023 18:47:11 +0100 Subject: [PATCH] fix: name of vtl raw dump file --- src/algorithms/PVT/libs/rtklib_solver.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/algorithms/PVT/libs/rtklib_solver.cc b/src/algorithms/PVT/libs/rtklib_solver.cc index 589e6ae08..2b474868d 100755 --- a/src/algorithms/PVT/libs/rtklib_solver.cc +++ b/src/algorithms/PVT/libs/rtklib_solver.cc @@ -167,7 +167,8 @@ Rtklib_Solver::Rtklib_Solver(const rtk_t &rtk, try { d_vtl_dump_file.exceptions(std::ofstream::failbit | std::ofstream::badbit); - d_vtl_dump_file.open(d_dump_filename + "_vtl", std::ios::out | std::ios::binary); + int end_filename = d_dump_filename.length()-4; + d_vtl_dump_file.open(d_dump_filename.insert(end_filename, "_vtl"), std::ios::out | std::ios::binary); LOG(INFO) << "PVT VTL dump enabled Log file: " << d_dump_filename + "_vtl"; } catch (const std::ofstream::failure &e)