sensor: fix the type casting issue about integer division 22/139022/1
authorkibak.yoon <kibak.yoon@samsung.com>
Mon, 17 Jul 2017 02:54:52 +0000 (11:54 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Mon, 17 Jul 2017 02:54:52 +0000 (11:54 +0900)
- the result of integer division converted into floating point

Change-Id: I40d59f2976c1d65cd4c4c20ddb027edcbc70ab5b
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/sensor/rotation_vector/fusion_utils/orientation_filter.cpp

index be41328..e352f5b 100644 (file)
@@ -40,7 +40,7 @@
 #define ZIGMA_W                (0.05 * DEG2RAD)
 #define TAU_W          1000
 #define QWB_CONST      ((2 * (ZIGMA_W * ZIGMA_W)) / TAU_W)
-#define F_CONST                (-1 / TAU_W)
+#define F_CONST                (-1.0 / TAU_W)
 #define SQUARE(T)      (T * T)
 
 #define NEGLIGIBLE_VAL 0.0000001