This commit is contained in:
bap-0-1
2024-05-28 17:59:44 +02:00
parent b2e8971369
commit 2bd4c0a547
2 changed files with 10 additions and 0 deletions

View File

@@ -280,6 +280,14 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
else if (tokens[3] == "1") {
this->togglePince(2);
}
else if (tokens[3] == "11") {
this->alertLidar = true;
this->broadcastMessage("strat;gc;start proximity;1\n");
}
else if (tokens[3] == "12") {
this->alertLidar = false;
this->broadcastMessage("strat;gc;stop proximity;1\n");
}
else if (tokens[3] == "13") {
this->togglePanel(0);
}

View File

@@ -93,6 +93,8 @@ private:
int lidarDecetionDistance = 0;
bool alertLidar = true;
public:
explicit TCPServer(int port);