Karim Azzouz / Mbed 2 deprecated A-Quad

Dependencies:   MovingAverageFilter MyI2C PID RC mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HelperMath.h Source File

HelperMath.h

00001 #ifndef HELPERMATH_H
00002 #define HELPERMATH_H
00003 /**************************************************/
00004 //Multiply two 3x3 matrixs. This function developed by Jordi can be easily adapted to multiple n*n matrix's. (Pero me da flojera!). 
00005 void Matrix_Multiply(float a[3][3], float b[3][3],float mat[3][3]);
00006 
00007 //Computes the dot product of two vectors
00008 float Vector_Dot_Product(float vector1[3],float vector2[3]);
00009 
00010 //Computes the cross product of two vectors
00011 void Vector_Cross_Product(float vectorOut[3], float v1[3],float v2[3]);
00012 
00013 //Multiply the vector by a scalar. 
00014 void Vector_Scale(float vectorOut[3],float vectorIn[3], float scale2);
00015 
00016 void Vector_Add(float vectorOut[3],float vectorIn1[3], float vectorIn2[3]);
00017 
00018 
00019 #endif