mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 21:33:35 +08:00
Had to add definition of PI is used with ROS because cannot share math library yet-needs to be solved
This commit is contained in:
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
|
|
||||||
namespace math {
|
namespace math {
|
||||||
|
#define M_PI_F 3.14159265358979323846
|
||||||
|
|
||||||
float __EXPORT min(float val1, float val2)
|
float __EXPORT min(float val1, float val2)
|
||||||
{
|
{
|
||||||
@@ -143,4 +143,4 @@ double __EXPORT degrees(double radians)
|
|||||||
return (radians / M_PI) * 180.0;
|
return (radians / M_PI) * 180.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user