From 5390772b0aed4e39633f43101d6458ed156bab34 Mon Sep 17 00:00:00 2001 From: ackimixs Date: Sat, 4 May 2024 10:50:47 +0200 Subject: [PATCH] lidar --- TCPServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 4eab726..802d24d 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -227,8 +227,8 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) file << finishPoint[0] << " " << finishPoint[1]; file.close(); - this->sendToClient("strat;lidar;set team;" + std::to_string(this->team) + "\n", lidarSocket); - this->sendToClient("strat;lidar;set beacon;1", lidarSocket); + this->broadcastMessage("strat;lidar;set team;" + std::to_string(this->team) + "\n"); + this->broadcastMessage("strat;lidar;set beacon;1"); this->robotPose = {spawnPoint[0], spawnPoint[1], spawnPoint[2]}; this->initRobotPose = {spawnPoint[0], spawnPoint[1], spawnPoint[2]};