[math] run test and math and fix warning

This commit is contained in:
Gautier Hattenberger
2021-11-17 17:18:45 +01:00
parent 389754d1f8
commit cea1c0a536
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -36,6 +36,7 @@
<file name="pprz_trig_int.c" dir="math"/>
<file name="pprz_orientation_conversion.c" dir="math"/>
<file name="pprz_stat.c" dir="math"/>
<test/>
</makefile>
</module>
+2 -2
View File
@@ -141,7 +141,7 @@ static inline float pythag(float a, float b)
}
int min(int num1, int num2) {
static int imin(int num1, int num2) {
return (num1 > num2 ) ? num2 : num1;
}
/** SVD decomposition
@@ -298,7 +298,7 @@ int pprz_svd_float(float **a, float *w, float **v, int m, int n)
}
/* Accumulation of left-hand transformations. */
for (i = min(m,n) - 1; i >= 0; --i) {
for (i = imin(m,n) - 1; i >= 0; --i) {
l = i + 1;
G = w[i];
if (i < (n - 1)) {