added ros version detection to build script
This commit is contained in:
parent
d4ee8ef81e
commit
7cb51a4cbc
|
@ -6,9 +6,14 @@ if(UNIX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(SIM)
|
if(SIM)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMULATION=1 -DMAVROSKINETIC=1")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMULATION=1")
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMULATION=0 -DMAVROSKINETIC=1")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMULATION=0")
|
||||||
|
endif()
|
||||||
|
if(KIN)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAVROSKINETIC=1")
|
||||||
|
else()
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAVROSKINETIC=0")
|
||||||
endif()
|
endif()
|
||||||
## Find catkin macros and libraries
|
## Find catkin macros and libraries
|
||||||
find_package(catkin REQUIRED COMPONENTS
|
find_package(catkin REQUIRED COMPONENTS
|
||||||
|
|
|
@ -92,7 +92,6 @@ void set_filtered_packet_loss(float value);
|
||||||
|
|
||||||
void set_currentNEDpos(double x, double y);
|
void set_currentNEDpos(double x, double y);
|
||||||
|
|
||||||
>>>>>>> 064760108611591426d86c679c7789b1a95cebee
|
|
||||||
void set_currentpos(double latitude, double longitude, float altitude, float yaw);
|
void set_currentpos(double latitude, double longitude, float altitude, float yaw);
|
||||||
/*
|
/*
|
||||||
* returns the current go to position
|
* returns the current go to position
|
||||||
|
|
Loading…
Reference in New Issue