mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 08:00:35 +08:00
fix math defines to have M_PI and M_TWOPI
This commit is contained in:
@@ -17,10 +17,6 @@
|
||||
|
||||
#include "math.hpp"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI (3.14159265358979323846f)
|
||||
#endif
|
||||
|
||||
namespace matrix
|
||||
{
|
||||
|
||||
|
||||
@@ -13,6 +13,13 @@
|
||||
#include <cstdlib>
|
||||
#include <inttypes.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
#ifndef M_TWOPI
|
||||
#define M_TWOPI (M_PI * 2.0)
|
||||
#endif
|
||||
|
||||
namespace matrix {
|
||||
|
||||
#if !defined(FLT_EPSILON)
|
||||
|
||||
Reference in New Issue
Block a user