mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 09:00: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 {
|
||||
|
||||
#define M_PI_F 3.14159265358979323846
|
||||
|
||||
float __EXPORT min(float val1, float val2)
|
||||
{
|
||||
@@ -143,4 +143,4 @@ double __EXPORT degrees(double radians)
|
||||
return (radians / M_PI) * 180.0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user