From 9da8477e7c74384283c9bb6ffd8fa2065c7df8cc Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 16 Apr 2024 12:26:16 +0200 Subject: [PATCH] sleep --- TCPServer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 7ae3eec..e4625bc 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -456,7 +456,7 @@ void TCPServer::startGame() { this->broadcastMessage(toSend); isRobotMoving = 0; while (this->isRobotMoving < 3) { - usleep(500'000); + usleep(200'000); this->broadcastMessage("strat;arduino;get state;1\n"); } usleep(500'000); @@ -511,7 +511,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) { this->broadcastMessage(toSend); isRobotMoving = 0; while (this->isRobotMoving < 3) { - usleep(500'000); + usleep(200'000); this->broadcastMessage("strat;arduino;get state;1\n"); } usleep(500'000); @@ -529,7 +529,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) { this->broadcastMessage(toSend); isRobotMoving = 0; while (this->isRobotMoving < 3) { - usleep(500'000); + usleep(200'000); this->broadcastMessage("strat;arduino;get state;1\n"); } usleep(500'000); @@ -549,7 +549,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) { this->broadcastMessage(toSend); isRobotMoving = 0; while (this->isRobotMoving < 3) { - usleep(500'000); + usleep(200'000); this->broadcastMessage("strat;arduino;get state;1\n"); } usleep(3'000'000);