From 3d7bcf84e4489a436d43e4c647077b7249d18544 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Mon, 4 Nov 2024 12:31:30 +0100 Subject: [PATCH] added more drive logic --- src/C++/Driver/src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 72aac09..dd3da5f 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -49,9 +49,12 @@ void parseMQTT(std::string message){ robot.Rotate(90); } - else if(message == "down"){ + else if(message == "right"){ robot.Rotate(-90); } + else if(message == "down"){ + robot.forward(600); + } else if(message == "stop"){ robot.sendNullMessage(); }