From 7f66c6c0c64c19e7b793884e05f1e1164155c207 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Tue, 16 Apr 2024 11:23:37 +0200 Subject: [PATCH] sleep --- TCPServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index e6e7bdb..5a9ab6f 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -513,7 +513,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) { usleep(500'000); this->broadcastMessage("strat;arduino;get state;1\n"); } - usleep(10'000'000); + usleep(500'000); double x30Percent = xPrime * 0.3; double y30Percent = yPrime * 0.3; @@ -551,7 +551,7 @@ void TCPServer::goToAruco(const ArucoTag &arucoTag, const int pince) { usleep(500'000); this->broadcastMessage("strat;arduino;get state;1\n"); } - usleep(1'000'000); + usleep(3'000'000); toSend = "strat;servo_moteur;fermer pince;" + std::to_string(pince) + "\n"; this->broadcastMessage(toSend);