mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 14:50:35 +08:00
Fix math tests
This commit is contained in:
@@ -58,7 +58,6 @@ set(srcs
|
||||
test_rc.c
|
||||
test_conv.cpp
|
||||
test_mount.c
|
||||
test_eigen.cpp
|
||||
)
|
||||
|
||||
if(${OS} STREQUAL "nuttx")
|
||||
@@ -73,6 +72,7 @@ px4_add_module(
|
||||
STACK 60000
|
||||
COMPILE_FLAGS
|
||||
-Wframe-larger-than=6000
|
||||
-Wno-float-equal
|
||||
-O0
|
||||
SRCS ${srcs}
|
||||
DEPENDS
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <px4_config.h>
|
||||
|
||||
#include <px4_posix.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
|
||||
@@ -37,7 +37,8 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include <px4_config.h>
|
||||
|
||||
#include <px4_defines.h>
|
||||
#include <px4_posix.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -50,11 +50,11 @@
|
||||
#include <errno.h>
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
//#include <nuttx/spi.h>
|
||||
|
||||
#include <systemlib/perf_counter.h>
|
||||
|
||||
// Not using Eigen at the moment
|
||||
#define TESTS_EIGEN_DISABLE
|
||||
|
||||
#include "tests.h"
|
||||
|
||||
/****************************************************************************
|
||||
@@ -113,7 +113,9 @@ const struct {
|
||||
#ifndef TESTS_MATHLIB_DISABLE
|
||||
{"mathlib", test_mathlib, 0},
|
||||
#endif
|
||||
#ifndef TESTS_EIGEN_DISABLE
|
||||
{"eigen", test_eigen, OPT_NOJIGTEST},
|
||||
#endif
|
||||
{"help", test_help, OPT_NOALLTEST | OPT_NOHELP | OPT_NOJIGTEST},
|
||||
{NULL, NULL, 0}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user