added ros version detection to build script

This commit is contained in:
dave 2018-09-06 12:59:05 -04:00
parent d4ee8ef81e
commit 7cb51a4cbc
2 changed files with 7 additions and 3 deletions

View File

@ -6,9 +6,14 @@ if(UNIX)
endif()
if(SIM)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMULATION=1 -DMAVROSKINETIC=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMULATION=1")
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()
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS

View File

@ -92,7 +92,6 @@ void set_filtered_packet_loss(float value);
void set_currentNEDpos(double x, double y);
>>>>>>> 064760108611591426d86c679c7789b1a95cebee
void set_currentpos(double latitude, double longitude, float altitude, float yaw);
/*
* returns the current go to position