mirror of
https://github.com/modelec/TCPSocketServer.git
synced 2026-03-18 21:50:33 +01:00
TODO
This commit is contained in:
@@ -122,6 +122,9 @@ void TCPServer::handleMessage(const std::string& message, int clientSocket)
|
||||
if (TCPUtils::contains(tokens[2], "stop proximity")) {
|
||||
std::vector<std::string> args = TCPUtils::split(tokens[3], ",");
|
||||
|
||||
lidarDecetionDistance = stoi(args[0]);
|
||||
// TODO distance de detection proportionnelle a la vitesse
|
||||
|
||||
if (stoi(args[0]) < 300) {
|
||||
stopEmergency = true;
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ private:
|
||||
|
||||
double lidarDectectionAngle = 0;
|
||||
|
||||
int lidarDecetionDistance = 0;
|
||||
|
||||
public:
|
||||
explicit TCPServer(int port);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user