diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 247212e..4dbd83c 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -30,9 +30,6 @@ void setup() int main() { - // Unset the http_proxy environment variable - - setup(); std::thread image (CapnSend); std::thread safety([&]() { robot.robotSafety(&message); }); @@ -41,6 +38,7 @@ int main() while(true){ parseMQTT(readMQTT()); } + sendMqtt.join(); safety.join(); image.join(); @@ -63,7 +61,7 @@ void parseMQTT(std::string message) { if (message == "up") { - robot.forward(1024); + robot.forward(350); } else if (message == "left") { @@ -75,7 +73,7 @@ void parseMQTT(std::string message) } else if (message == "down") { - robot.forward(-800); + robot.forward(-350); } else if (message == "stop") {