From a4224567472792a0fb3229e025141b3b193afe82 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Mon, 4 Nov 2024 14:36:46 +0100 Subject: [PATCH] change rotation way --- src/C++/Driver/src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 899b5e8..ed72da5 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -50,11 +50,11 @@ void parseMQTT(std::string message){ robot.forward(1024); } else if(message == "left"){ - robot.Rotate(45); + robot.setRotationSpeed(4); } else if(message == "right"){ - robot.Rotate(-45); + robot.setRotationSpeed(4); } else if(message == "down"){ robot.forward(-800);