From a986f921f591f276bc51706109ec26ea2c5a8e19 Mon Sep 17 00:00:00 2001 From: Simone Tollardo <94357442+tollsimy@users.noreply.github.com> Date: Mon, 27 Nov 2023 15:49:08 +0100 Subject: [PATCH] Revert "logs hotfix" --- roboteam_ai/src/utilities/Settings.cpp | 2 ++ roboteam_robothub/src/RobotHubStatistics.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/roboteam_ai/src/utilities/Settings.cpp b/roboteam_ai/src/utilities/Settings.cpp index b1007c118..b51f7b849 100644 --- a/roboteam_ai/src/utilities/Settings.cpp +++ b/roboteam_ai/src/utilities/Settings.cpp @@ -42,6 +42,8 @@ void GameSettings::setLeft(bool _left) { left = _left; return; } + + RTT_INFO("This secondary AI can not alter settings") } net::RobotHubMode GameSettings::getRobotHubMode() { return robotHubMode; } diff --git a/roboteam_robothub/src/RobotHubStatistics.cpp b/roboteam_robothub/src/RobotHubStatistics.cpp index cee66bb4a..252c86ffb 100644 --- a/roboteam_robothub/src/RobotHubStatistics.cpp +++ b/roboteam_robothub/src/RobotHubStatistics.cpp @@ -50,7 +50,7 @@ void RobotHubStatistics::print() const { std::stringstream ss; // Clear and flush - ss << "\x1B[2J\x1B[H" << std::flush << std::endl; + ss << "\x1B[2J\x1B[H" << std::flush; ss << " ┏━━━━━━━━━━━━━━━━━━━┓ " << std::endl << "┏━━━━━━━━━━━━━━━━━━━━━━━━━┫ Roboteam RobotHub ┣━━━┳━━━━━━━━━━━━━━━━━━━━━━┓" << std::endl @@ -71,7 +71,7 @@ void RobotHubStatistics::print() const { << "┃" << b[3] << " │" << b[7] << " │ " << b[11] << " │ " << b[15] << " ┃ Feedback: " << this->numberToSideBox(this->feedbackPacketsDropped) << " ┃" << std::endl << "┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━┛" << std::endl; - RTT_INFO("", ss.str()) + RTT_INFO("\n", ss.str()) } void RobotHubStatistics::incrementCommandsReceivedCounter(int id, rtt::Team color) {