testing bobot

This commit is contained in:
2024-09-23 14:14:37 +02:00
parent 3c58efa9a6
commit 8221423a35

View File

@@ -37,17 +37,26 @@ int movement()
{ {
robot.goStraight(1); robot.goStraight(1);
} }
if (text == 2) else if (text == 2)
{ {
// 1 is full circle
robot.doRotation(0.25); robot.doRotation(0.25);
} }
if (text == 3) else if (text == 3)
{ {
robot.doRotation(-0.25); // Add your code here for text == 3
} }
else else
{ {
cout << "no text specified"; try
{
robot.doRotation(text);
throw "NaN";
}
catch (const char *msg)
{
cerr << msg << endl;
}
} }
} }
} }