From dc4b15aa78873a3235d1d08c6ee9d44b8280560f Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 2 May 2024 21:41:47 +0200 Subject: [PATCH] sleep --- TCPServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 353c145..2a1d1b1 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -730,7 +730,7 @@ void TCPServer::awaitRobotIdle() { // ReSharper disable once CppDFAConstantConditions // ReSharper disable once CppDFAEndlessLoop while (isRobotIdle < 2) { - usleep(100'000); + usleep(200'000); this->sendToClient("strat;arduino;get state;1\n", this->arduinoSocket); timeout++; if (timeout > 30) { @@ -1071,7 +1071,7 @@ void TCPServer::dropWhiteFlowers(StratPattern sp) { usleep(500'000); this->go(whiteDropPosition); - usleep(2'000'000); + usleep(4'000'000); for (int i = 0; i < 3; i++) { if (pinceState[i] == WHITE_FLOWER) {