paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [4657] ahrgg diff fix arithmetic conversion in hff


From: Felix Ruess
Subject: [paparazzi-commits] [4657] ahrgg diff fix arithmetic conversion in hff
Date: Wed, 10 Mar 2010 15:59:40 +0000

Revision: 4657
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=4657
Author:   flixr
Date:     2010-03-10 15:59:39 +0000 (Wed, 10 Mar 2010)
Log Message:
-----------
ahrgg diff fix arithmetic conversion in hff

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/booz/ins/booz2_hf_float.c

Modified: paparazzi3/trunk/sw/airborne/booz/ins/booz2_hf_float.c
===================================================================
--- paparazzi3/trunk/sw/airborne/booz/ins/booz2_hf_float.c      2010-03-10 
12:45:33 UTC (rev 4656)
+++ paparazzi3/trunk/sw/airborne/booz/ins/booz2_hf_float.c      2010-03-10 
15:59:39 UTC (rev 4657)
@@ -103,10 +103,10 @@
 #define ACC_RB_MAXN 64
 struct AccBuf {
   struct Int32Vect3 buf[ACC_RB_MAXN];
-  uint8_t r; /* pos to read from, oldest measurement */
-  uint8_t w; /* pos to write to */
-  uint8_t n; /* number of elements in rb */
-  uint8_t size;
+  int r; /* pos to read from, oldest measurement */
+  int w; /* pos to write to */
+  int n; /* number of elements in rb */
+  int size;
 };
 struct AccBuf acc_body;
 struct Int32Vect3 acc_body_mean;
@@ -140,7 +140,7 @@
     }
        VECT3_SDIV(acc_body_mean, sum, n);
   } else {
-       VECT3_COPY(acc_body_mean, acc_body.buf[acc_body.w - 1]);
+       VECT3_COPY(acc_body_mean, sum);
   }
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]