aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRoman Bapst <romanbapst@yahoo.de>2014-11-11 14:55:33 +0100
committerRoman Bapst <romanbapst@yahoo.de>2014-11-11 14:55:33 +0100
commited409fd53757a43b49758d3ed5573e809a23b113 (patch)
tree05608923835e44587343440b6f2dc6a02cd51135 /src/lib
parentc8ad06ff9966884242a1ce80eddb4a45efc30c50 (diff)
downloadpx4-firmware-ed409fd53757a43b49758d3ed5573e809a23b113.tar.gz
px4-firmware-ed409fd53757a43b49758d3ed5573e809a23b113.tar.bz2
px4-firmware-ed409fd53757a43b49758d3ed5573e809a23b113.zip
use px4_defines header to distinguish platform
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/geo_lookup/geo_mag_declination.h4
-rw-r--r--src/lib/mathlib/math/Limits.hpp2
-rw-r--r--src/lib/mathlib/math/Vector.hpp2
3 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/geo_lookup/geo_mag_declination.h b/src/lib/geo_lookup/geo_mag_declination.h
index d79b78412..0ac062d6d 100644
--- a/src/lib/geo_lookup/geo_mag_declination.h
+++ b/src/lib/geo_lookup/geo_mag_declination.h
@@ -40,12 +40,8 @@
#pragma once
-#ifdef CONFIG_ARCH_ARM
__BEGIN_DECLS
__EXPORT float get_mag_declination(float lat, float lon);
__END_DECLS
-#else
-float get_mag_declination(float lat, float lon);
-#endif
diff --git a/src/lib/mathlib/math/Limits.hpp b/src/lib/mathlib/math/Limits.hpp
index 79e127fdd..fca4197b8 100644
--- a/src/lib/mathlib/math/Limits.hpp
+++ b/src/lib/mathlib/math/Limits.hpp
@@ -39,7 +39,7 @@
#pragma once
-#include <platforms/px4_config.h>
+#include <platforms/px4_defines.h>
#include <stdint.h>
namespace math {
diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp
index b0b03980d..9accd0907 100644
--- a/src/lib/mathlib/math/Vector.hpp
+++ b/src/lib/mathlib/math/Vector.hpp
@@ -50,7 +50,7 @@
#include "../CMSIS/Include/arm_math.h"
#else
#include <math/eigen_math.h>
-#include <Eigen/Eigen>
+//#include <Eigen/Eigen>
#endif
namespace math