- Sensor Fusion folder is not added in current case if RV sensor
is added without orientation sensor. This is fixed in the code so
rotation vector sensor can be added without orientation sensor.
Change-Id: I2658cef8925c55618c619dc2da7104cfbab61653
set(SENSOR_FUSION_ENABLE "1")
set(ORIENTATION_ENABLE "1")
ENDIF()
+IF("${RV}" STREQUAL "ON")
+set(SENSOR_FUSION_ENABLE "1")
+set(RV_ENABLE "1")
+ENDIF()
IF("${GRAVITY}" STREQUAL "ON")
set(SENSOR_FUSION_ENABLE "1")
set(ORIENTATION_ENABLE "1")
-IF("${RV}" STREQUAL "ON")
+IF("${RV_ENABLE}" STREQUAL "ON")
add_subdirectory(rv)
ENDIF()