mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 23:53:35 +08:00
lots' of header juggling and small changes to make mc att control compile for NuttX and ROS
This commit is contained in:
@@ -49,9 +49,8 @@
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
#include "../CMSIS/Include/arm_math.h"
|
||||
#else
|
||||
#include <math/eigen_math.h>
|
||||
#include <platforms/ros/eigen_math.h>
|
||||
#include <Eigen/Eigen>
|
||||
#define M_PI_2_F 1.5707963267948966192f
|
||||
#endif
|
||||
|
||||
namespace math
|
||||
@@ -122,6 +121,15 @@ public:
|
||||
memcpy(data, d, sizeof(data));
|
||||
}
|
||||
|
||||
#if defined(__linux) || (defined(__APPLE__) && defined(__MACH__))
|
||||
/**
|
||||
* set data from boost::array
|
||||
*/
|
||||
void set(const boost::array<float, 9ul> d) {
|
||||
set(static_cast<const float*>(d.data()));
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* access by index
|
||||
*/
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#ifdef CONFIG_ARCH_ARM
|
||||
#include "../CMSIS/Include/arm_math.h"
|
||||
#else
|
||||
#include <math/eigen_math.h>
|
||||
#include <platforms/ros/eigen_math.h>
|
||||
#endif
|
||||
|
||||
namespace math
|
||||
|
||||
Reference in New Issue
Block a user