mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
Fix thread creation and joining in test.cpp
This commit is contained in:
@@ -20,9 +20,9 @@ int main()
|
|||||||
robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
|
robot.startCommunication("/dev/ttyUSB0", true, null_ptr);
|
||||||
usleep(1 * 1000 * 1000);
|
usleep(1 * 1000 * 1000);
|
||||||
cout << "Enter commando";
|
cout << "Enter commando";
|
||||||
// thread mv(command);
|
thread mv(command);
|
||||||
usleep(30 * 1000 * 1000);
|
usleep(30 * 1000 * 1000);
|
||||||
// mv.join(); //only exit once thread one is done running
|
mv.join(); //only exit once thread one is done running
|
||||||
}
|
}
|
||||||
|
|
||||||
int command(){
|
int command(){
|
||||||
|
Reference in New Issue
Block a user