change rotation way

This commit is contained in:
2024-11-04 14:36:46 +01:00
parent a508d5c881
commit a422456747

View File

@@ -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);