Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MovingAverageFilter MyI2C PID RC mbed-rtos mbed
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
Generated on Mon Jul 18 2022 00:04:58 by
1.7.2