aboutsummaryrefslogtreecommitdiff
path: root/src/lib/mathlib/math/Vector.hpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-02 16:52:38 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-02 16:52:38 +0100
commitad499a594447d807b3702c64fdfaad51ac579e2b (patch)
tree73c3a2b96b488a246407f9a377b6bac5830965c4 /src/lib/mathlib/math/Vector.hpp
parent05a87a706a122b8a83becaaa94c70161fb69c82a (diff)
parentefe0938e9990225636e5fed78e945ded5f24220f (diff)
downloadpx4-firmware-ad499a594447d807b3702c64fdfaad51ac579e2b.tar.gz
px4-firmware-ad499a594447d807b3702c64fdfaad51ac579e2b.tar.bz2
px4-firmware-ad499a594447d807b3702c64fdfaad51ac579e2b.zip
Merge remote-tracking branch 'upstream/ROS_shared_lib_base_class' into dev_ros_rossharedlib
Conflicts: src/modules/uORB/topics/vehicle_attitude.h src/platforms/px4_defines.h
Diffstat (limited to 'src/lib/mathlib/math/Vector.hpp')
-rw-r--r--src/lib/mathlib/math/Vector.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/mathlib/math/Vector.hpp b/src/lib/mathlib/math/Vector.hpp
index 0ddf77615..57b45e3ab 100644
--- a/src/lib/mathlib/math/Vector.hpp
+++ b/src/lib/mathlib/math/Vector.hpp
@@ -45,7 +45,12 @@
#include <stdio.h>
#include <math.h>
+
+#ifdef CONFIG_ARCH_ARM
#include "../CMSIS/Include/arm_math.h"
+#else
+#include <math/eigen_math.h>
+#endif
namespace math
{
@@ -65,7 +70,12 @@ public:
/**
* struct for using arm_math functions, represents column vector
*/
+ #ifdef CONFIG_ARCH_ARM
arm_matrix_instance_f32 arm_col;
+ #else
+ eigen_matrix_instance arm_col;
+ #endif
+
/**
* trivial ctor