use cmath instead of math.h

This commit is contained in:
Alex Mikhalev 2019-05-15 22:09:34 -07:00
parent 803abd05a7
commit 385a9747f6
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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;