mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
added more preciese controls
This commit is contained in:
@@ -47,17 +47,17 @@ std::string readMQTT()
|
||||
|
||||
void parseMQTT(std::string message){
|
||||
if(message == "up"){
|
||||
robot.forward(1024);
|
||||
robot.forward(400);
|
||||
}
|
||||
else if(message == "left"){
|
||||
robot.Rotate(90);
|
||||
robot.Rotate(10);
|
||||
|
||||
}
|
||||
else if(message == "right"){
|
||||
robot.Rotate(-90);
|
||||
robot.Rotate(-10);
|
||||
}
|
||||
else if(message == "down"){
|
||||
robot.forward(600);
|
||||
robot.forward(400);
|
||||
}
|
||||
else if(message == "stop"){
|
||||
robot.sendNullMessage();
|
||||
|
Reference in New Issue
Block a user