mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 12:24:57 +00:00
threaded the movement of the robot
This commit is contained in:
@@ -16,6 +16,7 @@ int main()
|
||||
cout << "Enter commando";
|
||||
thread mv(movement);
|
||||
usleep(30 * 1000 * 1000);
|
||||
mv.join(); //only exit once thread one is done running
|
||||
}
|
||||
|
||||
int checkCenterCliff()
|
||||
@@ -35,7 +36,7 @@ int movement()
|
||||
|
||||
if (text == 1)
|
||||
{
|
||||
robot.goStraight(1);
|
||||
robot.goStraight(10);
|
||||
}
|
||||
else if (text == 2)
|
||||
{
|
||||
@@ -59,4 +60,4 @@ int movement()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user