mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 04:14:58 +00:00
Refactor robot movement in test.cpp
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user