diff --git a/TCPServer.cpp b/TCPServer.cpp index 78950d3..4886da7 100644 --- a/TCPServer.cpp +++ b/TCPServer.cpp @@ -168,7 +168,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket) } if (args[0] == "0") { if (!handleEmergecnyFlag) { - double angle = static_cast((value * PI / 2) / 327.67f); + double angle = static_cast((value * PI / 2) / 327.67f * 100); this->broadcastMessage("strat;arduino;angle;" + std::to_string(angle) + "\n"); } }