Skip to content

Commit

Permalink
removed writing messages to messages.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
pde-bakk committed Dec 16, 2024
1 parent 24fcbc2 commit 0e10478
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions srcs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "Arguments.hpp"
#include <iomanip>

std::ofstream messagesFile("messages.txt", std::ios::trunc);
using Filter = KalmanFilter<9, 3, 9>;

static bool received_position(const std::vector<Message>& messages) {
Expand All @@ -31,7 +30,6 @@ int run(const Arguments &args) {

std::vector<Message> messages = connection.get_messages();
for (const auto& msg : messages) {
messagesFile << msg << '\n';
data.add_message_information(msg);
}

Expand Down Expand Up @@ -59,7 +57,6 @@ int run(const Arguments &args) {
}
for (const auto& msg : messages) {
data.add_message_information(msg);
messagesFile << msg << '\n';
}
const Timestamp msg_timestamp = messages[0].get_timestamp();
const double time_delta = msg_timestamp.since(last_timestamp);
Expand Down

0 comments on commit 0e10478

Please sign in to comment.