Browse Source

use more up to date C++

try-fix-comms-errors
Alex Mikhalev 6 years ago
parent
commit
a0b7f10ae7
  1. 2
      main/CMakeLists.txt
  2. 5
      main/ugv_io.cc
  3. 4
      main/ugv_io_mpu.cc

2
main/CMakeLists.txt

@ -24,5 +24,5 @@ register_component() @@ -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})

5
main/ugv_io.cc

@ -2,12 +2,9 @@ @@ -2,12 +2,9 @@
#include <driver/gpio.h>
#include <driver/mcpwm.h>
#include <driver/uart.h>
#include <esp_log.h>
#include <math.h>
#include "MPU.hpp"
#include "mpu/math.hpp"
#include <math.h>
namespace ugv {
namespace io {

4
main/ugv_io_mpu.cc

@ -3,6 +3,10 @@ @@ -3,6 +3,10 @@
#include <driver/uart.h>
#include <esp_log.h>
#include <math.h>
constexpr float M_PI = atanf(1.f) * 4;
#include "MPU.hpp"
#include "i2c_mutex.h"
#include "mpu/math.hpp"

Loading…
Cancel
Save