From 5b314ca9429fbaebd9961675d3d49c5a0bf507ca Mon Sep 17 00:00:00 2001 From: ackimixs Date: Thu, 18 Apr 2024 15:30:14 +0200 Subject: [PATCH] sleep --- TCPServer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TCPServer.cpp b/TCPServer.cpp index 81bad47..277b7be 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -558,6 +558,8 @@ void TCPServer::startGameBlueTeam() { this->broadcastMessage("strat;arduino;angle;314\n"); awaitRobotIdle(); + usleep(1'000'000); + toSend = "strat;arduino;go;" + std::to_string(static_cast(this->robotPose.pos.x - 350)) + "," + std::to_string(static_cast(this->robotPose.pos.y)) + "\n"; this->broadcastMessage(toSend); awaitRobotIdle();