mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-01-19 08:57:42 +01:00
condition
This commit is contained in:
@@ -189,10 +189,10 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n");
|
||||
}
|
||||
else {
|
||||
if (speed > 0 && !(this->lidarDectectionAngle < PI / 2 || this->lidarDectectionAngle > 3 * PI / 2)) {
|
||||
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)) {
|
||||
else if (speed < 0 && !(this->lidarDectectionAngle > PI / 2 && this->lidarDectectionAngle < 3 * PI / 2)) {
|
||||
this->broadcastMessage("strat;arduino;speed;" + std::to_string(speed) + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user