mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 13:20:35 +08:00
Eigen: Add general purpose Eigen compatability header for PX4
This commit is contained in:
@@ -38,17 +38,7 @@
|
||||
* @author Johan Jansen <jnsn.johan@gmail.com>
|
||||
*/
|
||||
|
||||
//Hacks to make Eigen compile on NuttX
|
||||
#pragma GCC diagnostic push
|
||||
#define RAND_MAX __RAND_MAX
|
||||
#pragma GCC diagnostic ignored "-Wshadow"
|
||||
#pragma GCC diagnostic ignored "-Wfloat-equal"
|
||||
#define _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC 1
|
||||
|
||||
#include <eigen/Eigen/Core>
|
||||
#include <eigen/Eigen/Geometry>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
#include <px4_eigen.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
Reference in New Issue
Block a user