From cf59adae8bb3e2ca29a23afea6ab741a623b6f05 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Mon, 4 Nov 2024 11:56:57 +0100 Subject: [PATCH] attempt to fix --- src/C++/Driver/src/main.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 9e019b3..d589236 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -23,7 +23,6 @@ void setup(){ int main(){ setup(); - client.run(); while(true){ parseMQTT(readMQTT()); cout << readMQTT() << endl; //debugging @@ -48,19 +47,15 @@ std::string readMQTT() void parseMQTT(std::string message){ if(message == "up"){ robot.forward(600); - break; } else if(message == "left"){ robot.Rotate(90); - break; } else if(message == "down"){ robot.Rotate(-90); - break; } else{ std::cout << "Invalid command" << std::endl; - break; } }