testing my own file

This commit is contained in:
ishak jmilou.ishak
2024-10-03 15:17:33 +02:00
parent df696f7626
commit 60b86d30b1
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ find_package( OpenCV REQUIRED )
set(SOURCE_FILES set(SOURCE_FILES
src/CKobuki.cpp src/CKobuki.cpp
src/CKobuki.h src/CKobuki.h
src/main.cpp) src/test.cpp)
add_executable(kobuki_control ${SOURCE_FILES}) add_executable(kobuki_control ${SOURCE_FILES})
#target_link_libraries(kobuki_control ) #target_link_libraries(kobuki_control )

View File

@@ -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(){