Browse Source

use cmath instead of math.h

master
Alex Mikhalev 6 years ago
parent
commit
385a9747f6
  1. 2
      main/ugv_io.cc
  2. 2
      main/ugv_io_mpu.cc

2
main/ugv_io.cc

@ -4,7 +4,7 @@
#include <driver/mcpwm.h> #include <driver/mcpwm.h>
#include <esp_log.h> #include <esp_log.h>
#include <math.h> #include <cmath>
namespace ugv { namespace ugv {
namespace io { namespace io {

2
main/ugv_io_mpu.cc

@ -3,7 +3,7 @@
#include <driver/uart.h> #include <driver/uart.h>
#include <esp_log.h> #include <esp_log.h>
#include <math.h> #include <cmath>
constexpr float M_PI = 3.1415926535897932384626433832795; constexpr float M_PI = 3.1415926535897932384626433832795;

Loading…
Cancel
Save