remove end angle

This commit is contained in:
ackimixs
2024-04-16 12:22:49 +02:00
parent d3d0301109
commit 37fa0130a5

View File

@@ -242,7 +242,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
}
}
else if (tokens[0] == "arduino" && tokens[2] == "set state") {
this->isRobotMoving += (TCPUtils::startWith(tokens[3], "0") ? 1 : 0);
this->isRobotMoving += (TCPUtils::startWith(tokens[3], "1") ? 0 : 1);
}
std::cout << "Received: " << message << std::endl;
}
@@ -461,8 +461,8 @@ void TCPServer::startGame() {
}
usleep(500'000);
toSend = "start;arduino;angle;" + std::to_string(this->endRobotPose.theta * 100) + "\n";
this->broadcastMessage(toSend);
// toSend = "start;arduino;angle;" + std::to_string(this->endRobotPose.theta * 100) + "\n";
// this->broadcastMessage(toSend);
this->broadcastMessage("strat;servo_moteur;clear;1");
}