mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: allow for double EKF build
This commit is contained in:
parent
6171006579
commit
309500c84f
|
@ -6,7 +6,7 @@
|
||||||
macros to allow code to build on multiple platforms more easily
|
macros to allow code to build on multiple platforms more easily
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX || HAL_WITH_EKF_DOUBLE
|
||||||
/*
|
/*
|
||||||
allow double maths on Linux and SITL to avoid problems with system headers
|
allow double maths on Linux and SITL to avoid problems with system headers
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -56,6 +56,10 @@
|
||||||
#define HAL_WITH_RAMTRON 0
|
#define HAL_WITH_RAMTRON 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAL_WITH_EKF_DOUBLE
|
||||||
|
#define HAL_WITH_EKF_DOUBLE HAL_HAVE_HARDWARE_DOUBLE
|
||||||
|
#endif
|
||||||
|
|
||||||
// allow for static semaphores
|
// allow for static semaphores
|
||||||
#include <AP_HAL_ChibiOS/Semaphores.h>
|
#include <AP_HAL_ChibiOS/Semaphores.h>
|
||||||
#define HAL_Semaphore ChibiOS::Semaphore
|
#define HAL_Semaphore ChibiOS::Semaphore
|
||||||
|
|
|
@ -355,3 +355,11 @@
|
||||||
#define HAL_Semaphore Linux::Semaphore
|
#define HAL_Semaphore Linux::Semaphore
|
||||||
#include <AP_HAL/EventHandle.h>
|
#include <AP_HAL/EventHandle.h>
|
||||||
#define HAL_EventHandle AP_HAL::EventHandle
|
#define HAL_EventHandle AP_HAL::EventHandle
|
||||||
|
|
||||||
|
#ifndef HAL_HAVE_HARDWARE_DOUBLE
|
||||||
|
#define HAL_HAVE_HARDWARE_DOUBLE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAL_WITH_EKF_DOUBLE
|
||||||
|
#define HAL_WITH_EKF_DOUBLE HAL_HAVE_HARDWARE_DOUBLE
|
||||||
|
#endif
|
||||||
|
|
|
@ -71,3 +71,10 @@
|
||||||
#define HAL_BOARD_STORAGE_DIRECTORY "."
|
#define HAL_BOARD_STORAGE_DIRECTORY "."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAL_HAVE_HARDWARE_DOUBLE
|
||||||
|
#define HAL_HAVE_HARDWARE_DOUBLE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAL_WITH_EKF_DOUBLE
|
||||||
|
#define HAL_WITH_EKF_DOUBLE HAL_HAVE_HARDWARE_DOUBLE
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue