From f3033b1632bf14b61c177cb03a58207618e1bcff Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Mon, 4 Nov 2024 14:00:35 +0100 Subject: [PATCH] change rotation controls --- src/C++/Driver/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index c8b5ec2..8f85c45 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -47,17 +47,17 @@ std::string readMQTT() void parseMQTT(std::string message){ if(message == "up"){ - robot.forward(400); + robot.forward(1024); } else if(message == "left"){ - robot.Rotate(10); + robot.Rotate(45); } else if(message == "right"){ - robot.Rotate(-10); + robot.Rotate(-45); } else if(message == "down"){ - robot.forward(400); + robot.forward(-800); } else if(message == "stop"){ robot.sendNullMessage();