]> git.droids-corp.org - protos/imu.git/commitdiff
remove unused vector.[ch]
authorOlivier Matz <zer0@droids-corp.org>
Tue, 22 Jul 2014 20:36:58 +0000 (22:36 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 22 Jul 2014 20:36:58 +0000 (22:36 +0200)
imu.c
vector.c [deleted file]
vector.h [deleted file]

diff --git a/imu.c b/imu.c
index 0c41556aa35661133095e46ceae27f5b21f98588..86d36f2a45186b8adbf6282d3629cdf1ce50e779 100644 (file)
--- a/imu.c
+++ b/imu.c
@@ -9,7 +9,6 @@
 #include <uart.h>
 
 #include "mpu6050.h"
-#include "vector.h"
 #include "matrix.h"
 #include "MadgwickAHRS.h"
 #include "sd_log.h"
diff --git a/vector.c b/vector.c
deleted file mode 100644 (file)
index 3938be2..0000000
--- a/vector.c
+++ /dev/null
@@ -1,35 +0,0 @@
-//Computes the dot product of two vectors
-float Vector_Dot_Product(float vector1[3],float vector2[3])
-{
-       float op=0;
-
-       for(int c=0; c<3; c++) {
-               op+=vector1[c]*vector2[c];
-       }
-
-       return op;
-}
-
-//Computes the cross product of two vectors
-void Vector_Cross_Product(float vectorOut[3], float v1[3],float v2[3])
-{
-       vectorOut[0]= (v1[1]*v2[2]) - (v1[2]*v2[1]);
-       vectorOut[1]= (v1[2]*v2[0]) - (v1[0]*v2[2]);
-       vectorOut[2]= (v1[0]*v2[1]) - (v1[1]*v2[0]);
-}
-
-//Multiply the vector by a scalar.
-void Vector_Scale(float vectorOut[3],float vectorIn[3], float scale2)
-{
-       for(int c=0; c<3; c++) {
-               vectorOut[c]=vectorIn[c]*scale2;
-       }
-}
-
-void Vector_Add(float vectorOut[3],float vectorIn1[3], float vectorIn2[3])
-{
-       for(int c=0; c<3; c++) {
-               vectorOut[c]=vectorIn1[c]+vectorIn2[c];
-       }
-}
-
diff --git a/vector.h b/vector.h
deleted file mode 100644 (file)
index af7ec9b..0000000
--- a/vector.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef _VECTOR_H_
-#define _VECTOR_H_
-
-float Vector_Dot_Product(float vector1[3],float vector2[3]);
-void Vector_Cross_Product(float vectorOut[3], float v1[3],float v2[3]);
-void Vector_Scale(float vectorOut[3],float vectorIn[3], float scale2);
-void Vector_Add(float vectorOut[3],float vectorIn1[3], float vectorIn2[3]);
-
-#endif// _VECTOR_H_