mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
change rotation way
This commit is contained in:
@@ -50,11 +50,11 @@ void parseMQTT(std::string message){
|
|||||||
robot.forward(1024);
|
robot.forward(1024);
|
||||||
}
|
}
|
||||||
else if(message == "left"){
|
else if(message == "left"){
|
||||||
robot.Rotate(45);
|
robot.setRotationSpeed(4);
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(message == "right"){
|
else if(message == "right"){
|
||||||
robot.Rotate(-45);
|
robot.setRotationSpeed(4);
|
||||||
}
|
}
|
||||||
else if(message == "down"){
|
else if(message == "down"){
|
||||||
robot.forward(-800);
|
robot.forward(-800);
|
||||||
|
Reference in New Issue
Block a user