mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-25 23:46:04 +08:00
[math] run test and math and fix warning
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user