removed backward

This commit is contained in:
ishak jmilou.ishak
2024-10-09 16:08:59 +02:00
parent 30628cf16e
commit d3b7aafc76

View File

@@ -30,7 +30,7 @@ int command() {
while (true) { while (true) {
// Vraag de gebruiker om een commando // Vraag de gebruiker om een commando
std::cout << "choose between forward/backwards = 1 or rotate = 2" << endl; std::cout << "choose between forward = 1 or rotate = 2" << endl;
std::cout << "What must the robot do?"; std::cout << "What must the robot do?";
std::cin >> input; std::cin >> input;
@@ -38,7 +38,7 @@ int command() {
switch (input) { switch (input) {
case 1: { case 1: {
int distance; int distance;
std::cout << "Enter distance to move forward or backwards: "; std::cout << "Enter distance to move forward: ";
std::cin >> distance; std::cin >> distance;
robot.goStraight(distance); // Beweeg de robot naar voren robot.goStraight(distance); // Beweeg de robot naar voren
} break; } break;