From cb35b6dd8a1f44a8f103fdbcebae5b0dcf4bbbf5 Mon Sep 17 00:00:00 2001
From: Ankur
Date: Thu, 18 Dec 2014 19:44:49 +0530
Subject: [PATCH 01/16] Added missing function call
- Missing Function call to sf_stop() in one of the test cases - linear_acceleration.c
- Also, it was leading to a warning about use before intialization warning.
Change-Id: Ic0df7b6334945ac62048fee9ddcdb32fdf0fcba9
---
test/src/linear_acceleration.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/src/linear_acceleration.c b/test/src/linear_acceleration.c
index 5e157e5..e45f4cc 100755
--- a/test/src/linear_acceleration.c
+++ b/test/src/linear_acceleration.c
@@ -94,6 +94,8 @@ int main(int argc,char **argv)
sf_unregister_event(handle, event);
+ stop_handle = sf_stop(handle);
+
if (stop_handle < 0) {
printf("Error\n\n");
return -1;
--
2.7.4
From b713babd37d30a84b9239b619dc8477c899d09d5 Mon Sep 17 00:00:00 2001
From: Ankur
Date: Thu, 18 Dec 2014 19:58:08 +0530
Subject: [PATCH 02/16] Removed missing parantheses warning
-Added missing parantheses arounf an assignment in a condition.
-Removed Missing Parantheses Warning.
Change-Id: Ib7814ef31a911896e868b11cfc057284573bee7a
---
src/shared/sensor_plugin_loader.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shared/sensor_plugin_loader.cpp b/src/shared/sensor_plugin_loader.cpp
index 09f6711..8aa70d1 100755
--- a/src/shared/sensor_plugin_loader.cpp
+++ b/src/shared/sensor_plugin_loader.cpp
@@ -227,7 +227,7 @@ bool sensor_plugin_loader::get_paths_from_dir(const string &dir_path, vectord_name);
if (equal(PLUGIN_POSTFIX.rbegin(), PLUGIN_POSTFIX.rend(), name.rbegin())) {
--
2.7.4
From ecde90333a1ea21280753978b2b08fb46975f20f Mon Sep 17 00:00:00 2001
From: Ramasamy
Date: Fri, 19 Dec 2014 11:11:18 +0530
Subject: [PATCH 03/16] Adding description for Measurement update system
Adding description for the sensor fusion measurement update system
in html documentation.
Change-Id: I7dc24f7940cfb8d607313fe9b3cd405abf1666e2
---
.../design/documentation/sensor_fusion.htm | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/sensor_fusion/design/documentation/sensor_fusion.htm b/src/sensor_fusion/design/documentation/sensor_fusion.htm
index 231b129..0003b4b 100755
--- a/src/sensor_fusion/design/documentation/sensor_fusion.htm
+++ b/src/sensor_fusion/design/documentation/sensor_fusion.htm
@@ -140,9 +140,9 @@ previous time instant and a '0' specifies it as an initialization value.
-
The accelerometer and magnetometer data are normalized based on equations (3)
+
The accelerometer and magnetometer data are normalized based on equations (3)
and (4) to obtain the calibrated accelerometer data (Ax, Ay, Az) and magnetometer
-data (Mx, My, Mz).