looking if robot will follow commands

This commit is contained in:
ishak jmilou.ishak
2024-10-07 14:10:55 +02:00
parent 3f22544a9f
commit 1c3ef29070

View File

@@ -42,6 +42,9 @@ int command(){
switch(input){ switch(input){
case 1: case 1:
robot.forward(1024, 1); robot.forward(1024, 1);
robot.doRotation(90);
robot.forward(1024, -1);
robot.doRotation(-90);
break; break;
case 2: case 2:
robot.doRotation(90); robot.doRotation(90);