change loop

This commit is contained in:
ackimixs
2024-04-16 18:05:45 +02:00
parent 803f5ab120
commit 0c1ea5dbc0

View File

@@ -397,13 +397,15 @@ void TCPServer::startGame() {
// pi/4
this->broadcastMessage("strat;arduino;angle;314\n");
isRobotMoving = true;
while (this->isRobotMoving) {
usleep(500'000);
isRobotMoving = 0;
while (this->isRobotMoving < 3) {
usleep(200'000);
this->broadcastMessage("strat;arduino;get state;1\n");
}
usleep(500'000);
// ReSharper disable once CppDFAUnreachableCode
usleep(500'000);
this->broadcastMessage("strat;servo_moteur;baisser bras;1\n");