From cf88cc5d458d68808b505de247dc2be8ab25f50c Mon Sep 17 00:00:00 2001 From: ackimixs Date: Sat, 4 May 2024 11:37:50 +0200 Subject: [PATCH] sleep --- TCPServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index e723ef2..d4a38bf 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -239,7 +239,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) for (int j = 0; j < 3; j++) { std::cout << "AHHHHHHHHHHHHHHHHHH " << this->initRobotPose.pos.x << " " << this->initRobotPose.pos.y << " " << this->initRobotPose.theta << std::endl; this->setPosition(this->initRobotPose); - usleep(200'000); + usleep(1'000'000); } this->broadcastMessage("strat;lidar;set team;" + std::to_string((this->team == BLUE ? 0 : 1)) + "\n");