mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
testing if robot can go backwards
This commit is contained in:
@@ -31,7 +31,7 @@ int command() {
|
|||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
// Vraag de gebruiker om een commando
|
// Vraag de gebruiker om een commando
|
||||||
std::cout << "choose between forward = 1 or rotate = 2" << endl;
|
std::cout << "choose between forward/backwards = 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;
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@ int command() {
|
|||||||
switch (input) {
|
switch (input) {
|
||||||
case 1: {
|
case 1: {
|
||||||
int distance;
|
int distance;
|
||||||
std::cout << "Enter distance to move forward: ";
|
std::cout << "Enter distance to move forward or backwards: ";
|
||||||
std::cin >> distance;
|
std::cin >> distance;
|
||||||
robot.goStraight(distance); // Beweeg de robot naar voren
|
robot.goStraight(distance); // Beweeg de robot naar voren
|
||||||
} break;
|
} break;
|
||||||
|
Reference in New Issue
Block a user