From 73b8ac954d8487a6171576bb5c6a20afcb6951a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 15 Jul 2016 12:50:11 +0200 Subject: [PATCH] ekf_helper.cpp: remove unused includes This fixes a compile error with GCC 5.2.0 and cross-compilation: /usr/arm-none-eabi/include/c++/5.2.0/arm-none-eabi/armv7e-m/fpu/bits/error_constants.h:122:27: error: 'ENOTSUP' was not declared in this scope not_supported = ENOTSUP, The problem was that the #include was taken from the host system, which conflicts with includes from NuttX (NuttX has only basic C++ STL support) --- EKF/ekf_helper.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/EKF/ekf_helper.cpp b/EKF/ekf_helper.cpp index 666e60f54e..72684600ba 100644 --- a/EKF/ekf_helper.cpp +++ b/EKF/ekf_helper.cpp @@ -40,11 +40,6 @@ */ #include "ekf.h" -#ifdef __PX4_POSIX -#include -#include -#endif -#include #include "mathlib.h" // Reset the velocity states. If we have a recent and valid