mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
testing bobot
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user