diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index b6e1440..e9e892c 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -24,5 +24,5 @@ register_component() make_directory(${PB_OUT}) -component_compile_options("-Werror=incompatible-pointer-types") +component_compile_options("-Werror=incompatible-pointer-types" "-std=c++14") component_compile_options(-I${PB_OUT}) diff --git a/main/ugv_io.cc b/main/ugv_io.cc index 2b9356f..c1f0e2b 100644 --- a/main/ugv_io.cc +++ b/main/ugv_io.cc @@ -2,12 +2,9 @@ #include #include -#include #include -#include -#include "MPU.hpp" -#include "mpu/math.hpp" +#include namespace ugv { namespace io { diff --git a/main/ugv_io_mpu.cc b/main/ugv_io_mpu.cc index 622bbca..65354b6 100644 --- a/main/ugv_io_mpu.cc +++ b/main/ugv_io_mpu.cc @@ -3,6 +3,10 @@ #include #include +#include + +constexpr float M_PI = atanf(1.f) * 4; + #include "MPU.hpp" #include "i2c_mutex.h" #include "mpu/math.hpp"