From f3e978f62e09d2ed35e8d12cb1ee187c25093e5b Mon Sep 17 00:00:00 2001 From: ackimixs Date: Mon, 8 Apr 2024 21:23:11 +0200 Subject: [PATCH] SLEEEEEEEEP --- TCPServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index e6224f4..9dc29e7 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -178,11 +178,11 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) int y = static_cast(std::stof(arucoArgs[2])); std::string toSend = "strat;arduino;go;" + std::to_string(x) + "," + std::to_string(y); this->broadcastMessage(toSend.c_str()); - usleep(2'000'000); + usleep(10'000'000); this->broadcastMessage("strat;servo_moteur;fermer pince;1\n"); this->broadcastMessage("strat;servo_moteur;lever bras;1\n"); this->broadcastMessage("strat;arduino;go;1000,1500\n"); - usleep(2'000'000); + usleep(10'000'000); this->broadcastMessage("strat;servo_moteur;baisser bras;1\n"); this->broadcastMessage("strat;servo_moteur;ouvrir pince;1\n"); this->broadcastMessage("strat;arduino;go;500,500\n");