Move main method in own file instead of lfr.cpp
This commit is contained in:
parent
d952629b39
commit
36b65fdf07
@ -33,7 +33,7 @@ target_include_directories(ControlModule PRIVATE .)
|
|||||||
target_include_directories(Interpreter PRIVATE .)
|
target_include_directories(Interpreter PRIVATE .)
|
||||||
target_include_directories(IntersectionHandler PRIVATE .)
|
target_include_directories(IntersectionHandler PRIVATE .)
|
||||||
|
|
||||||
add_executable(lfr_image_processing lfr.cpp)
|
add_executable(lfr_image_processing lfr.cpp autonomous_mode_main.cpp)
|
||||||
|
|
||||||
target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler )
|
target_link_libraries( lfr_image_processing ${OpenCV_LIBS} Input Processing ControlModule Interpreter IntersectionHandler )
|
||||||
|
|
||||||
|
9
autonomous_mode_main.cpp
Normal file
9
autonomous_mode_main.cpp
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include "lfr.h"
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
//Mat image1 = input.readFile("C:\\Line-Following-Robot\\Test_data\\*.jpeg");
|
||||||
|
|
||||||
|
LFR lfr;
|
||||||
|
lfr.startLoop();
|
||||||
|
}
|
9
lfr.cpp
9
lfr.cpp
@ -33,13 +33,4 @@ void LFR::startLoop()
|
|||||||
void LFR::endLoop()
|
void LFR::endLoop()
|
||||||
{
|
{
|
||||||
std::cout<<"The loop has been started. You may not dare to tell it to stop.";
|
std::cout<<"The loop has been started. You may not dare to tell it to stop.";
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int main(void)
|
|
||||||
{
|
|
||||||
//Mat image1 = input.readFile("C:\\Line-Following-Robot\\Test_data\\*.jpeg");
|
|
||||||
|
|
||||||
LFR lfr;
|
|
||||||
lfr.startLoop();
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user