Skip to content

Commit

Permalink
Merge pull request #104 from RoboTeamTwente/revert-101-fix/logs
Browse files Browse the repository at this point in the history
Revert "logs hotfix"
  • Loading branch information
tollsimy authored Nov 27, 2023
2 parents c64302b + a986f92 commit c5a4b0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roboteam_ai/src/utilities/Settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
4 changes: 2 additions & 2 deletions roboteam_robothub/src/RobotHubStatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit c5a4b0f

Please sign in to comment.