Refactor robot movement in test.cpp

This commit is contained in:
ishak jmilou.ishak
2024-10-07 15:20:34 +02:00
parent 1c3ef29070
commit 83b3e9f67f

View File

@@ -41,10 +41,10 @@ int command(){
switch(input){
case 1:
robot.forward(1024, 1);
robot.goStraight(1);
robot.doRotation(90);
robot.forward(1024, -1);
robot.doRotation(-90);
robot.goStraight(-1);
break;
case 2:
robot.doRotation(90);