This commit is contained in:
ackimixs
2024-05-15 19:39:34 +02:00
parent 7d3c2ac74b
commit 43a9850cd2

View File

@@ -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");
}
}
}