From 43a9850cd2fa5e45fae1d851904323b61fa29d7e Mon Sep 17 00:00:00 2001 From: ackimixs Date: Wed, 15 May 2024 19:39:34 +0200 Subject: [PATCH] speed --- TCPServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TCPServer.cpp b/TCPServer.cpp index 683b681..61e364f 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -181,8 +181,8 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) if (speed > 0 && !(this->lidarDectectionAngle > PI / 2 || this->lidarDectectionAngle < 3 * PI / 2)) { this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n"); } - else if (speed < 0 && !(this->lidarDectectionAngle < PI / 2 && this->lidarDectectionAngle > 3 *PI / 2)) { - this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n"); + else if (speed < 0 && !(this->lidarDectectionAngle < PI / 2 || this->lidarDectectionAngle > 3 *PI / 2)) { + this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n"); } } }