platform/core/system/sensord.git
9 years agosensord: add sensor types for HRM sensor 94/35494/1
Kibak Yoon [Mon, 16 Feb 2015 13:44:32 +0000 (22:44 +0900)]
sensord: add sensor types for HRM sensor

Heart Rate Monitor sensor type is added and supported on sensor fw.

Change-Id: If0ec9fd72b5658d13f5a61f9bf2902c663812fdc
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoRemoving vconf dependencies from sensor plugin build files 19/35319/3
Ramasamy [Thu, 12 Feb 2015 04:14:23 +0000 (09:44 +0530)]
Removing vconf dependencies from sensor plugin build files

Removing vconf dependencies from various sensor plugins where
vconf functionality is not used.

This is to reduce hanging during build.

Change-Id: I2f7fcc8af349f240bb88c8e578d7c556c0bb89e5

9 years agoMerge "sensord: fix the bug about terminating null byte when using strncpy" into...
Kibak Yoon [Thu, 29 Jan 2015 13:02:22 +0000 (05:02 -0800)]
Merge "sensord: fix the bug about terminating null byte when using strncpy" into tizen

9 years agosensord: fix the bug about terminating null byte when using strncpy 03/34603/1
Kibak Yoon [Thu, 29 Jan 2015 10:59:47 +0000 (19:59 +0900)]
sensord: fix the bug about terminating null byte when using strncpy

when termination was forced, the index was wrong.

Change-Id: I7966527a5bece6bb4a09ceec63d4eec3f751b13b
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoMerge "Removed Compiler warning - comparison between signed and unsigned integers...
Kibak Yoon [Sun, 25 Jan 2015 04:13:19 +0000 (20:13 -0800)]
Merge "Removed Compiler warning - comparison between signed and unsigned integers" into tizen

9 years agosensord: modify the macro for avoiding build-break 04/34304/1 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common accepted/tizen/common/20150123.090005 accepted/tizen/mobile/20150123.091457 accepted/tizen/tv/20150123.090942 accepted/tizen/wearable/20150123.091138 submit/tizen/20150123.055621
Kibak Yoon [Fri, 23 Jan 2015 05:47:54 +0000 (14:47 +0900)]
sensord: modify the macro for avoiding build-break

In both of CAPI and Internal API, declaration of sensor_option_e is duplicated
and the macro should be changed by proper name

Change-Id: I9b19791b44247d9684dba05845131ecbc41f3917
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoRemoved Compiler warning - comparison between signed and unsigned integers 63/34263/1
Ankur [Thu, 22 Jan 2015 12:01:30 +0000 (17:31 +0530)]
Removed Compiler warning - comparison between signed and unsigned integers

-Changed int to unsigned int in permission_checker.cpp to remove warning about comparison between signed and unsigned integers.

Change-Id: I3b7b4fe6bfbd303d173633a0035115017974776a

9 years agofix build for buxton 35/34135/1 accepted/tizen/common/20150122.101953 submit/tizen_common/20150121.102138 submit/tizen_common/20150121.102513
Stephane Desneux [Mon, 19 Jan 2015 15:20:39 +0000 (16:20 +0100)]
fix build for buxton

Change-Id: I93eb443bada926aaaf105029bd33cb205d93c419
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
9 years agoAdding sensor event check for get_sensor_data RV sensor 35/34035/3
Ramasamy [Tue, 20 Jan 2015 11:02:02 +0000 (16:32 +0530)]
Adding sensor event check for get_sensor_data RV sensor

Added code to check event type for RV sensor get_sensor_data method

Change-Id: Ifc9ed8f3cab0fe24ab41296267a10f3b0fde560e

9 years agoCleanup of unused virtual sensor class variables 34/34034/2
Ramasamy [Tue, 20 Jan 2015 10:59:34 +0000 (16:29 +0530)]
Cleanup of unused virtual sensor class variables

Removing all class variables added to store virtual sensor data
as this is not used anymore by get_sensor_data method.

Change-Id: Ifd878de73ab819f80b7042f02e1bc407a4427bc1

9 years agoCorrecting minimum range for rv sensor properties 73/33973/2
Ramasamy [Mon, 19 Jan 2015 10:06:44 +0000 (15:36 +0530)]
Correcting minimum range for rv sensor properties

Minimum range for quaternions is between +1 and -1

Change-Id: Idf705e7a3cb1fa640add78522846e618dc36cdb8

9 years agoFix for Nan issues in virtual sensor using fusion 71/33971/2
Ramasamy [Mon, 19 Jan 2015 09:51:04 +0000 (15:21 +0530)]
Fix for Nan issues in virtual sensor using fusion

- Very small float values during multiplication with other small
float values get rounded of to zero.
- This fix ensures that very small values are set to negligible
values instead before they are rounded of to zero.

Change-Id: Ic8c60137586c1835838ccdb2ebbd85e4f3662927

9 years agoFixing measurement update systems for kalman filter 70/33970/3
Ramasamy [Mon, 19 Jan 2015 09:45:46 +0000 (15:15 +0530)]
Fixing measurement update systems for kalman filter

The equivalent octave code implementation taken from technical
paper is given below.

for j =1:6
% compute Kalman gain
K(:,j) = P(j ,:)./(P(j,j)+R(j,j));
% update state vector
x(:,i) = x(:,i) + K(:,j) * e(j);
% update covariance matrix
P = (eye(6) - (K(:,j) * H(j,:))) * P;
end

*** The actual fix for Nan issue is in seperate commit ***

Change-Id: Ided63f4df431416cb4ace4508417e2dffbd1888a

9 years agoFixing issue related to adding rv sensor 69/33969/1
Ramasamy [Mon, 19 Jan 2015 09:40:51 +0000 (15:10 +0530)]
Fixing issue related to adding rv sensor

- RV_Enable CMake variable does not have global scope
- Using RV variable from spec file.

Change-Id: I9c1a2149d67cd76ed38797ca528040c51cfa3710

9 years agoMerge "Fix for adding sensor fusion folder for RV sensor" into tizen
Kibak Yoon [Fri, 16 Jan 2015 12:00:39 +0000 (04:00 -0800)]
Merge "Fix for adding sensor fusion folder for RV sensor" into tizen

9 years agoMerge "Corrected the return value of functions rad2deg and deg2rad in euler_angles...
Kibak Yoon [Fri, 16 Jan 2015 12:00:29 +0000 (04:00 -0800)]
Merge "Corrected the return value of functions rad2deg and deg2rad in euler_angles" into tizen

9 years agoMerge "Fixing build issue in quaternion file" into tizen
Kibak Yoon [Fri, 16 Jan 2015 12:00:10 +0000 (04:00 -0800)]
Merge "Fixing build issue in quaternion file" into tizen

9 years agoMerge "Passing fourth parameter as required in sensor data main file for sensor fusio...
Kibak Yoon [Fri, 16 Jan 2015 11:59:12 +0000 (03:59 -0800)]
Merge "Passing fourth parameter as required in sensor data main file for sensor fusion" into tizen

9 years agoMerge "Bug Fixing - Corrected the return value for operator '+' for sensor_data...
Kibak Yoon [Fri, 16 Jan 2015 11:58:56 +0000 (03:58 -0800)]
Merge "Bug Fixing - Corrected the return value for  operator '+' for sensor_data" into tizen

9 years agoMerge "Cleanup of unused events in Rotation Vector sensor" into tizen
Kibak Yoon [Fri, 16 Jan 2015 11:58:08 +0000 (03:58 -0800)]
Merge "Cleanup of unused events in Rotation Vector sensor" into tizen

9 years agoCorrected the return value of functions rad2deg and deg2rad in euler_angles 34/33834/1
Ankur [Thu, 15 Jan 2015 12:21:12 +0000 (17:51 +0530)]
Corrected the return value of functions rad2deg and deg2rad in euler_angles

Functions were returning wrong type vector<T> instead of euler_angles<T>

Change-Id: I9a1081ef777106168ce437823b22bbe817a87293

9 years agoFixing build issue in quaternion file 33/33833/1
Vibhor Gaur [Thu, 15 Jan 2015 12:02:49 +0000 (17:32 +0530)]
Fixing build issue in quaternion file

-In * operator, vector was returned.
-Fixed it to returning quaternion type object.

Change-Id: I75179d510f32a03f9e08f5f348dd55b7c16f8784

9 years agoBug Fixing - Corrected the return value for operator '+' for sensor_data 30/33830/1
Ankur [Thu, 15 Jan 2015 11:45:58 +0000 (17:15 +0530)]
Bug Fixing - Corrected the return value for  operator '+' for sensor_data

Change-Id: Ie59aeab94e276de203697dceb07fa59da15185f3

9 years agoPassing fourth parameter as required in sensor data main file for sensor fusion 32/33832/1
Vibhor Gaur [Thu, 15 Jan 2015 11:44:26 +0000 (17:14 +0530)]
Passing fourth parameter as required in sensor data main file for sensor fusion

-Removed compiler error in constructor for testing sensor_data values for sensor fusion

Change-Id: Ic7c1212651c7d6ed835133cda724b00dcdf39cfc

9 years agoFix for adding sensor fusion folder for RV sensor 26/33826/1
Ramasamy [Thu, 15 Jan 2015 11:24:20 +0000 (16:54 +0530)]
Fix for adding sensor fusion folder for RV sensor

- Sensor Fusion folder is not added in current case if RV sensor
is added without orientation sensor. This is fixed in the code so
rotation vector sensor can be added without orientation sensor.

Change-Id: I2658cef8925c55618c619dc2da7104cfbab61653

9 years agoCleanup of unused events in Rotation Vector sensor 20/33820/1
Ramasamy [Thu, 15 Jan 2015 11:03:23 +0000 (16:33 +0530)]
Cleanup of unused events in Rotation Vector sensor

- The unused event representations and usage are removed for
rotation vector virtual sensor.

Change-Id: I363a27ea5d1a3b37b05ab8dce3bfcf04cc27064f

9 years agoRemoved compiler warning - wrong initialization order 04/33804/1
Ankur [Thu, 15 Jan 2015 08:21:07 +0000 (13:51 +0530)]
Removed compiler warning - wrong initialization order

-Corrected the wrong order of intialization (causing gcc to throw a warning)

Change-Id: I5662f93b0147fb50bafd7c74b074f7ad7e12c9ac

9 years agoRemoved Compiler Warning - comparison between signed and unsigned integers 02/33802/1
Ankur [Thu, 15 Jan 2015 08:02:40 +0000 (13:32 +0530)]
Removed Compiler Warning - comparison between signed and unsigned integers

In client.cpp comparison between signed and unsigned integers.
Signed integer was a indev variable for a for loop and was always positive
So, changed it from int to unsigned int.

Change-Id: Ib7e3d569b9d2320f0a8f5a3eee50fdd0db6d5425

9 years agoRemoved compiler warning - dereferencing type-punned pointer 64/33764/2
Ankur [Wed, 14 Jan 2015 13:40:47 +0000 (19:10 +0530)]
Removed compiler warning - dereferencing type-punned pointer

Change-Id: I18a383d818570608685bb55a2f9ce296e82d8432

9 years agoMerge "Adding event driven test framework for geomagnetic sensor" into tizen
Kibak Yoon [Tue, 13 Jan 2015 10:48:34 +0000 (02:48 -0800)]
Merge "Adding event driven test framework for geomagnetic sensor" into tizen

9 years agosensord: fix the bug about rename the function in orientation_filter 28/33528/1 accepted/tizen/common/20150119.131926 accepted/tizen/mobile/20150121.131613 accepted/tizen/tv/20150121.131826 accepted/tizen/wearable/20150121.080856 submit/IVI/20150119.134759 submit/tizen/20150113.013624 submit/tizen_wearable/20150121.063838
Kibak Yoon [Tue, 13 Jan 2015 01:32:20 +0000 (10:32 +0900)]
sensord: fix the bug about rename the function in orientation_filter

because the function name is changed, it should be replaced by new name.

Change-Id: I1ea4424aa0ac9a94d7ea1aeeb6e89054c932b594
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoMerge "Removed compiler warning - Implicit Declaration" into tizen submit/tizen/20150113.012540
Kibak Yoon [Sat, 10 Jan 2015 03:09:36 +0000 (19:09 -0800)]
Merge "Removed compiler warning - Implicit Declaration" into tizen

9 years agoMerge "Cleanup - Removing redundunt assignments from vector.cpp and matrix.cpp" into...
Kibak Yoon [Sat, 10 Jan 2015 03:09:23 +0000 (19:09 -0800)]
Merge "Cleanup - Removing redundunt assignments from vector.cpp and matrix.cpp" into tizen

9 years agoMerge "Adding a new function for priority list insertion" into tizen
Kibak Yoon [Sat, 10 Jan 2015 03:03:57 +0000 (19:03 -0800)]
Merge "Adding a new function for priority list insertion" into tizen

9 years agoMerge "Fixing memory leak issues in test files" into tizen
Kibak Yoon [Sat, 10 Jan 2015 03:03:28 +0000 (19:03 -0800)]
Merge "Fixing memory leak issues in test files" into tizen

9 years agoMerge "Adding geomagnetic_rv implementation to orientation_filter class" into tizen
Kibak Yoon [Sat, 10 Jan 2015 02:55:58 +0000 (18:55 -0800)]
Merge "Adding geomagnetic_rv implementation to orientation_filter class" into tizen

9 years agoMerge "Changing all references for quaternion to 9axis_quaternion" into tizen
Kibak Yoon [Sat, 10 Jan 2015 02:54:24 +0000 (18:54 -0800)]
Merge "Changing all references for quaternion to 9axis_quaternion" into tizen

9 years agoMerge "Renaming folders for testing sensor fusion" into tizen
Kibak Yoon [Sat, 10 Jan 2015 02:54:12 +0000 (18:54 -0800)]
Merge "Renaming folders for testing sensor fusion" into tizen

9 years agoMerge "sensord: remove unnecessary files in CMakeLists.txt" into tizen
Kibak Yoon [Sat, 10 Jan 2015 02:51:03 +0000 (18:51 -0800)]
Merge "sensord: remove unnecessary files in CMakeLists.txt" into tizen

9 years agoAdding a new function for priority list insertion 34/33434/3
Vibhor Gaur [Fri, 9 Jan 2015 09:48:47 +0000 (15:18 +0530)]
Adding a new function for priority list insertion

-Adding seperate function for insertion into priority list for virtual sensors.
-Initially insertion was done inside the same function as event registration.
-Adds modularity to the code.

Change-Id: Ifed2b6f690de70f103b389e24dc2d254398eaf66

9 years agoAdding event driven test framework for geomagnetic sensor 35/33435/2
Vibhor Gaur [Fri, 9 Jan 2015 09:29:28 +0000 (14:59 +0530)]
Adding event driven test framework for geomagnetic sensor

-Completing test file for geomagnetic sensor by adding event driven based testing as it exists for rest of the sensors.

Change-Id: I30033c31a1f415a698099029c07eef2d89b77903

9 years agoAdding geomagnetic_rv implementation to orientation_filter class 00/33400/1
Ramasamy [Fri, 9 Jan 2015 05:25:44 +0000 (10:55 +0530)]
Adding geomagnetic_rv implementation to orientation_filter class

- updated orientation_filter class for quaternion computation based
only on accel and geomagnetic input sensors.
- updated standalone test code for supporting geomagenetic rotation
vector computation.

Change-Id: Ie9b2ea60f3815adacff9fc7ee3c8e545f27b0816

9 years agoChanging all references for quaternion to 9axis_quaternion 98/33398/1
Ramasamy [Fri, 9 Jan 2015 05:17:23 +0000 (10:47 +0530)]
Changing all references for quaternion to 9axis_quaternion

- Changing all references to ensure that 9axis_quaternion is
differentiated from geomagnetic quaternion orientation representations
-Changed all related standalone test files

Change-Id: Ic91ad79853504ed78bc7960346687fce462add31

9 years agoRenaming folders for testing sensor fusion 92/33392/1
Ramasamy [Fri, 9 Jan 2015 04:43:25 +0000 (10:13 +0530)]
Renaming folders for testing sensor fusion

Renamed sensor_fusion folder 'standalone' -> 'test'
Renamed sensor_fusion->test folder 'test' -> 'test_projects'

Change-Id: Icf24c0414011a70b82f6971eb42b899d829479d7

9 years agoFixing memory leak issues in test files 50/33350/1
Vibhor Gaur [Thu, 8 Jan 2015 12:41:35 +0000 (18:11 +0530)]
Fixing memory leak issues in test files

Change-Id: I1aeeab6fc7e02c7d75c1f7671f9f77afbd42954f

9 years agoCleanup - Removing redundunt assignments from vector.cpp and matrix.cpp 47/33347/1
Ankur [Thu, 8 Jan 2015 12:15:42 +0000 (17:45 +0530)]
Cleanup - Removing redundunt assignments from vector.cpp and matrix.cpp

The assignments were redundunt as in the next line only, the same variable was being assigned to some other value.

Change-Id: Iebe65db1bb1705466314a968117d7cc5a678ccff

9 years agosensord: remove unnecessary files in CMakeLists.txt 93/33293/3
Kibak Yoon [Thu, 8 Jan 2015 02:46:43 +0000 (11:46 +0900)]
sensord: remove unnecessary files in CMakeLists.txt

checking ARM is not necessary because this macro is not used in the
source.

Change-Id: I1ec44abd7670ad61dde1826fbaec023672e6f935
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoMerge "sensord: merge tizen 2.3 sensord into tizen branch" into tizen
Kibak Yoon [Wed, 7 Jan 2015 13:42:08 +0000 (05:42 -0800)]
Merge "sensord: merge tizen 2.3 sensord into tizen branch" into tizen

9 years agosensord: merge tizen 2.3 sensord into tizen branch 64/33264/4
Kibak Yoon [Wed, 7 Jan 2015 11:48:55 +0000 (20:48 +0900)]
sensord: merge tizen 2.3 sensord into tizen branch

there are the quite many changes between private and public.
but almost patches are for code-clean and mobile specific features.
through updating sensord at once, private, tizen 2.3, tizen 3.0 code are
in sync.

Change-Id: Ieaef0357c810682c6b9c82f7429f9a680eccd25c
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoMerge "Modifying sf_orientation for new estimate_orientation" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:56:23 +0000 (04:56 -0800)]
Merge "Modifying sf_orientation for new estimate_orientation" into tizen

9 years agoMerge "Modifying geomagnetic_RV files for new estimate_orientation" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:56:11 +0000 (04:56 -0800)]
Merge "Modifying geomagnetic_RV files for new estimate_orientation" into tizen

9 years agoMerge "Adapting estimate_orientation to support geomagnetic_RV" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:55:59 +0000 (04:55 -0800)]
Merge "Adapting estimate_orientation to support geomagnetic_RV" into tizen

9 years agoRemoved Compilation warning - Unused return value 60/33160/2
Ankur [Tue, 6 Jan 2015 12:09:48 +0000 (17:39 +0530)]
Removed Compilation warning - Unused return value

-Return value from the function call to write() was not being used, generating a compilation warning.
-Added a while loop to check how many bytes are written in each iteration and ensure that the whole buffer is written.

Change-Id: Ice225aa6cfd4eb36293e5475c1d37ebf672e633a

9 years agoMerge "adding estimate_geomagtic_rv implementation" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:54:12 +0000 (04:54 -0800)]
Merge "adding estimate_geomagtic_rv implementation" into tizen

9 years agoMerge "Updating estimate_gravity implementation for quaternion outputs" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:54:00 +0000 (04:54 -0800)]
Merge "Updating estimate_gravity implementation for quaternion outputs" into tizen

9 years agoMerge "Updating sf_orientation implementation for quaternion" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:53:46 +0000 (04:53 -0800)]
Merge "Updating sf_orientation implementation for quaternion" into tizen

9 years agoMerge "Updating estimate_orientation call to output quaternions" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:53:30 +0000 (04:53 -0800)]
Merge "Updating estimate_orientation call to output quaternions" into tizen

9 years agoMerge "Removing low pass filtering from design" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:53:11 +0000 (04:53 -0800)]
Merge "Removing low pass filtering from design" into tizen

9 years agoMerge "Adding simulation initialization file for Geomagnetic RV" into tizen
Kibak Yoon [Wed, 7 Jan 2015 12:52:58 +0000 (04:52 -0800)]
Merge "Adding simulation initialization file for Geomagnetic RV" into tizen

9 years agosensord: add/change enums and types for avoiding build-break 42/33242/1
Kibak Yoon [Wed, 7 Jan 2015 06:24:37 +0000 (15:24 +0900)]
sensord: add/change enums and types for avoiding build-break

this patch would be reverted. However enumerations and types are added
for avoiding build-break until sensor capi is replaced by Tizen 2.3 API.
all packages which use tizen 2.2.1 api doesn't have a problem about
building, but some APIs don't work from now.

Change-Id: I8511158d977304b738fb33c9842a749e0f3519d1
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: fix CMakeList.txt for avoiding build-break 41/33241/1
Kibak Yoon [Wed, 7 Jan 2015 05:05:17 +0000 (14:05 +0900)]
sensord: fix CMakeList.txt for avoiding build-break

- define LIBDIR
- install virtual_sensors.xml

Change-Id: I4b3e65c6a0fa25dbf9e312e744087b4174a21620
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoModifying sf_orientation for new estimate_orientation 11/33211/1
Ramasamy [Wed, 7 Jan 2015 04:55:38 +0000 (10:25 +0530)]
Modifying sf_orientation for new estimate_orientation

- Adapting sf_orientation octave file to the restructured
  estmate_orientation ocatave implementation

Change-Id: I4febde2c476182ebd6df9b186efc3ad7cbdc0dd2

9 years agoModifying geomagnetic_RV files for new estimate_orientation 09/33209/1
Ramasamy [Wed, 7 Jan 2015 04:52:04 +0000 (10:22 +0530)]
Modifying geomagnetic_RV files for new estimate_orientation

- Adapting geomagnetic_RV octave files to the restructured
  estmate_orientation ocateve implementation
- cleanup

Change-Id: I84ce43db89cddbb7f664b67608e90ef9c2068d99

9 years agoAdapting estimate_orientation to support geomagnetic_RV 08/33208/1
Ramasamy [Wed, 7 Jan 2015 04:36:16 +0000 (10:06 +0530)]
Adapting estimate_orientation to support geomagnetic_RV

Restructuring estimate_orientation octave code to support both
quaternion generation using accel/gyro/mag or only using accel/mag
hardware sensors.

Change-Id: I0976df35d488d6bafb9ce064027ff7fd6e352dbd

9 years agosensord: clean CMakeList.txt 87/33187/1
Kibak Yoon [Tue, 6 Jan 2015 13:53:11 +0000 (22:53 +0900)]
sensord: clean CMakeList.txt

- remove useless code/macro
- for building on x86_64, use macro CMAKE_INSTALL_* in GNUInstallDirs

Change-Id: I6298368a9e2af00c35ebf4f37b483a00a8d5e1aa
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: remove useless xml file 86/33186/1
Kibak Yoon [Tue, 6 Jan 2015 13:51:31 +0000 (22:51 +0900)]
sensord: remove useless xml file

sensor_plugins xml for simulator is not neccessary anymore.

Change-Id: I91f8f816c08ab2ca53790fe4ae6bd7ab0e7b689f
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: clean up the spec file 85/33185/1
Kibak Yoon [Tue, 6 Jan 2015 12:28:58 +0000 (21:28 +0900)]
sensord: clean up the spec file

- remove useless code.
- replace hardcoded path by macro.
- code clean.

Change-Id: Iabeb35cdb1a5ec4684352da39d4bccbf05f51f8b
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: changing group in spec file 81/33181/2
Kibak Yoon [Tue, 6 Jan 2015 12:24:23 +0000 (21:24 +0900)]
sensord: changing group in spec file

refered by the below url:
https://wiki.tizen.org/wiki/Packaging/Guidelines#Group_Tag

Change-Id: I7c42fb9ee2707980a1135c9c1d2747f2072b4308
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: change the permission of some files 78/33178/1
Kibak Yoon [Tue, 6 Jan 2015 12:12:08 +0000 (21:12 +0900)]
sensord: change the permission of some files

it's for unifying the permission of all files.

Change-Id: I86e2d1dc11ffd39581ef1631bdab3e7e603e630a
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: add motion api temporarily for avoiding build-break 77/33177/1
Kibak Yoon [Tue, 6 Jan 2015 12:06:29 +0000 (21:06 +0900)]
sensord: add motion api temporarily for avoiding build-break

motion API is replaced by context gesture api after tizen 2.3.
because there are the packages which use motion API still,
sensor motion API should be restored temporarily.
 - they are not operated. only for avoiding build-break

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I8384ef30abf90623704908c8a537e62437a75ff2

9 years agosensord: move manifest files to packaging directory 76/33176/1
Kibak Yoon [Tue, 6 Jan 2015 12:05:38 +0000 (21:05 +0900)]
sensord: move manifest files to packaging directory

Change-Id: Ida30ea320f5aec3522c13467f093c5aa1f1c1b59
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: move systemd-related files to systemd directory 75/33175/1
Kibak Yoon [Tue, 6 Jan 2015 11:17:44 +0000 (20:17 +0900)]
sensord: move systemd-related files to systemd directory

add directory structure and build system file
- it would be better to put them in systemd directory.

Change-Id: I60dc53a09de117e52355a3dcb849b2adf0e5661f
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agosensord: move the documents into /documentation directory 70/33170/2
Kibak Yoon [Tue, 6 Jan 2015 10:57:34 +0000 (19:57 +0900)]
sensord: move the documents into /documentation directory

there are som files on root directory. To clean them, it would be better
to move them into /documentation directory.

Change-Id: Ifb2e4fe595a9cc31846faed419c298776db6e179
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoRemoved compiler warning - Implicit Declaration 68/33168/1
Ankur [Tue, 6 Jan 2015 12:32:32 +0000 (18:02 +0530)]
Removed compiler warning - Implicit Declaration

-Already removed this warning from accelerometer.c earlier
-Seems another change was done on a previous revision, causing the same warning to pop up.
-rotation_vector.c did not have this warning before.

Change-Id: I65372477168185d070ca9a919fd804b53441a156

9 years agoadding estimate_geomagtic_rv implementation 49/33149/2
Ramasamy [Tue, 6 Jan 2015 09:38:23 +0000 (15:08 +0530)]
adding estimate_geomagtic_rv implementation

Adding wrapper octave implementation for computing geomagnetic
rotation vector which would use the same estimate_orientation
implementation for computing the 9-axis rotation vector.

Change-Id: Id3f16a34357bc5439276521ac72c368cd7c8d591

9 years agoUpdating estimate_gravity implementation for quaternion outputs 36/33136/3
Ramasamy [Tue, 6 Jan 2015 07:42:15 +0000 (13:12 +0530)]
Updating estimate_gravity implementation for quaternion outputs

Updating estimate_gravity file to support output of orientation
estimation in terms of quaternions.

Change-Id: I1343cf2ab819680e445363becb5c72879430dc71

9 years agoUpdating sf_orientation implementation for quaternion 23/33123/3
Ramasamy [Tue, 6 Jan 2015 06:01:26 +0000 (11:31 +0530)]
Updating sf_orientation implementation for quaternion

Updating the sf_orientation octave implementation to support
the orientation computed interms of quaternions instead of euler
angles.

Change-Id: I5dc5e12ba9e70dc41bc20ebfef97cbd69b2ab808

9 years agoUpdating estimate_orientation call to output quaternions 16/33116/3
Ramasamy [Tue, 6 Jan 2015 05:37:12 +0000 (11:07 +0530)]
Updating estimate_orientation call to output quaternions

- Updating the estimate_orientation ocatave implementation to output
orientation values in terms of quaternions instead of euler angles.
- cleanup

Change-Id: Ida5a39a3270eafb26807a1bf218f3d48c32d789b

9 years agoRemoving low pass filtering from design 09/33109/3
Ramasamy [Tue, 6 Jan 2015 04:29:35 +0000 (09:59 +0530)]
Removing low pass filtering from design

- low pass filtering has already been removed from sensor fusion
implementation to improve estimated orientation response speed.
- updating the same in octave design

Change-Id: I1b9a3ea985424a9fa7db28655b11f674daa5ae75

9 years agoAdding simulation initialization file for Geomagnetic RV 05/33105/3
Ramasamy [Tue, 6 Jan 2015 03:38:03 +0000 (09:08 +0530)]
Adding simulation initialization file for Geomagnetic RV

Adding octave simulation initialization file which-
1) takes accelerometer and geomagnetic sensor inputs
2) calls geomagnetic rotation vector computation based on sensor
   fusion
3) converts the rotation vector to euler angles and plot the
   output

Change-Id: I61714d7d107925d3aa8e0400ac2900f7a70b0bc7

9 years agosensord: use LIBDIR macro for finding library path 00/33100/1
Kibak Yoon [Mon, 5 Jan 2015 15:56:18 +0000 (00:56 +0900)]
sensord: use LIBDIR macro for finding library path

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: Ia9ae92b3213f5ea9b0121c39e9137f9fe1b9274e

9 years agosensord: change int to intptr_t for avoiding build-break 99/33099/1
Kibak Yoon [Mon, 5 Jan 2015 15:22:37 +0000 (00:22 +0900)]
sensord: change int to intptr_t for avoiding build-break

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I46b024ef239b3ac91d5ccccfb908811168f9f8e9

9 years agoMerge "sensord: add sensor api for avoiding build break" into tizen
Kibak Yoon [Mon, 5 Jan 2015 15:02:01 +0000 (07:02 -0800)]
Merge "sensord: add sensor api for avoiding build break" into tizen

9 years agoMerge "sensord: update for being the compatible with the x32 and x64" into tizen
Kibak Yoon [Mon, 5 Jan 2015 15:00:50 +0000 (07:00 -0800)]
Merge "sensord: update for being the compatible with the x32 and x64" into tizen

9 years agosensord: add sensor api for avoiding build break 95/33095/1
Kibak Yoon [Mon, 5 Jan 2015 14:57:27 +0000 (23:57 +0900)]
sensord: add sensor api for avoiding build break

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: Icb6934702fcef2c10e72c513d682caa1ed08c21e

9 years agoMerge "Removed compiler warning - unsused variable" into tizen
Kibak Yoon [Mon, 5 Jan 2015 14:33:02 +0000 (06:33 -0800)]
Merge "Removed compiler warning - unsused variable" into tizen

9 years agosensord: update for being the compatible with the x32 and x64 79/32479/5
Kibak Yoon [Thu, 18 Dec 2014 12:27:11 +0000 (21:27 +0900)]
sensord: update for being the compatible with the x32 and x64

* replaced "/usr/lib" by %{_libdir}
* replaced "/usr/include" by %{_includedir}

refered from the below url:
https://wiki.tizen.org/wiki/HOW-TO_Build_a_Tizen_distribution_for_x64_arch

Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
Change-Id: I4c57f6ec79754aa20cd103d34e6a00ebfffff42c

9 years agoMerge "Adding test case for rotation_vector sensor" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:13:14 +0000 (17:13 -0800)]
Merge "Adding test case for rotation_vector sensor" into tizen

9 years agoMerge "Adding missing sensor_rv.h file" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:13:04 +0000 (17:13 -0800)]
Merge "Adding missing sensor_rv.h file" into tizen

9 years agoMerge changes I8c246a45,I8b9be20f into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:12:51 +0000 (17:12 -0800)]
Merge changes I8c246a45,I8b9be20f into tizen

* changes:
  Updated sensor framework common files for RV sensor
  Adding Makelist support for virtual sensor configuration

9 years agoMerge "Adding lock in virtual sensor layer for sensor fusion library" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:12:20 +0000 (17:12 -0800)]
Merge "Adding lock in virtual sensor layer for sensor fusion library" into tizen

9 years agoMerge "Updating virtual sensor xml configuration for multiple devices" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:12:08 +0000 (17:12 -0800)]
Merge "Updating virtual sensor xml configuration for multiple devices" into tizen

9 years agoMerge "Fixing 64 bit compiler issue for sensor_data class" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:11:47 +0000 (17:11 -0800)]
Merge "Fixing 64 bit compiler issue for sensor_data class" into tizen

9 years agoMerge "Removed compiler warning - comparison between signed and unsigned integers...
Kibak Yoon [Mon, 5 Jan 2015 01:11:30 +0000 (17:11 -0800)]
Merge "Removed compiler warning - comparison between signed and unsigned integers" into tizen

9 years agoMerge "Removed compiler warning - pointer of type 'void *' used in arithmetic" into...
Kibak Yoon [Mon, 5 Jan 2015 01:11:04 +0000 (17:11 -0800)]
Merge "Removed compiler warning - pointer of type 'void *' used in arithmetic" into tizen

9 years agoMerge "Removed compiler warning - dereferencing type-punned pointer will break strict...
Kibak Yoon [Mon, 5 Jan 2015 01:10:30 +0000 (17:10 -0800)]
Merge "Removed compiler warning - dereferencing type-punned pointer will break strict-aliasing rules" into tizen

9 years agoMerge "Removed compiler warning - Comparison between signed and unsigned integers...
Kibak Yoon [Mon, 5 Jan 2015 01:10:12 +0000 (17:10 -0800)]
Merge "Removed compiler warning - Comparison between signed and unsigned integers" into tizen

9 years agoMerge "Removed warning - use of deprecated function" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:09:52 +0000 (17:09 -0800)]
Merge "Removed warning - use of deprecated function" into tizen

9 years agoMerge "Removed compiler warning - implicit declaration of a function" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:09:31 +0000 (17:09 -0800)]
Merge "Removed compiler warning - implicit declaration of a function" into tizen

9 years agoMerge "Removed compiler warning - ignoring return value" into tizen
Kibak Yoon [Mon, 5 Jan 2015 01:09:17 +0000 (17:09 -0800)]
Merge "Removed compiler warning - ignoring return value" into tizen