use more up to date C++
This commit is contained in:
parent
1a39252b2e
commit
a0b7f10ae7
@ -24,5 +24,5 @@ register_component()
|
|||||||
|
|
||||||
make_directory(${PB_OUT})
|
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})
|
component_compile_options(-I${PB_OUT})
|
||||||
|
@ -2,12 +2,9 @@
|
|||||||
|
|
||||||
#include <driver/gpio.h>
|
#include <driver/gpio.h>
|
||||||
#include <driver/mcpwm.h>
|
#include <driver/mcpwm.h>
|
||||||
#include <driver/uart.h>
|
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#include "MPU.hpp"
|
#include <math.h>
|
||||||
#include "mpu/math.hpp"
|
|
||||||
|
|
||||||
namespace ugv {
|
namespace ugv {
|
||||||
namespace io {
|
namespace io {
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
#include <driver/uart.h>
|
#include <driver/uart.h>
|
||||||
#include <esp_log.h>
|
#include <esp_log.h>
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
constexpr float M_PI = atanf(1.f) * 4;
|
||||||
|
|
||||||
#include "MPU.hpp"
|
#include "MPU.hpp"
|
||||||
#include "i2c_mutex.h"
|
#include "i2c_mutex.h"
|
||||||
#include "mpu/math.hpp"
|
#include "mpu/math.hpp"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user