diff --git a/src/C++/Driver/src/main.cpp b/src/C++/Driver/src/main.cpp index 28a0957..7feb324 100644 --- a/src/C++/Driver/src/main.cpp +++ b/src/C++/Driver/src/main.cpp @@ -37,17 +37,26 @@ int movement() { robot.goStraight(1); } - if (text == 2) + else if (text == 2) { + // 1 is full circle robot.doRotation(0.25); } - if (text == 3) + else if (text == 3) { - robot.doRotation(-0.25); + // Add your code here for text == 3 } else { - cout << "no text specified"; + try + { + robot.doRotation(text); + throw "NaN"; + } + catch (const char *msg) + { + cerr << msg << endl; + } } } -} +} \ No newline at end of file