mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-18 21:50:33 +01:00
angle
This commit is contained in:
@@ -168,7 +168,7 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
}
|
||||
if (args[0] == "0") {
|
||||
if (!handleEmergecnyFlag) {
|
||||
double angle = static_cast<int>((value * PI / 2) / 327.67f);
|
||||
double angle = static_cast<int>((value * PI / 2) / 327.67f * 100);
|
||||
this->broadcastMessage("strat;arduino;angle;" + std::to_string(angle) + "\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user