mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 00:47:36 +01:00
change index
This commit is contained in:
@@ -174,9 +174,9 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
} else {
|
||||
std::cout << "Aruco tags received" << std::endl;
|
||||
std::vector<std::string> arucoArgs = split(aruco, ",");
|
||||
int x = static_cast<int>(std::stof(arucoArgs[0]));
|
||||
int y = static_cast<int>(std::stof(arucoArgs[2]));
|
||||
std::string toSend = "strat;arduino;go;" + std::to_string(y) + "," + std::to_string(x);
|
||||
int x = static_cast<int>(std::stof(arucoArgs[2]));
|
||||
int y = static_cast<int>(std::stof(arucoArgs[4]));
|
||||
std::string toSend = "strat;arduino;go;" + std::to_string(x) + "," + std::to_string(y);
|
||||
this->broadcastMessage(toSend.c_str());
|
||||
usleep(3'000'000);
|
||||
this->broadcastMessage("strat;servo_moteur;fermer pince;1\n");
|
||||
|
||||
Reference in New Issue
Block a user