platform/core/system/sensord.git
9 years agoAdding common plugin for hardware/software fusion - orientation sensor 20/39520/1
Ankur [Mon, 18 May 2015 08:00:53 +0000 (13:30 +0530)]
Adding common plugin for hardware/software fusion - orientation sensor

Support for common virtual sensor plugin for orientation sensor for both hardware and software based sensor fusion

Tested on rd-pq device with tizen 2.4 repo

Change-Id: I676cc594d167928508e3e82a585e2d5910d01e40

9 years agoCommon plugin for Hardware/Software Rotation Vector 58/39458/4
Ankur [Fri, 15 May 2015 12:12:23 +0000 (17:42 +0530)]
Common plugin for Hardware/Software Rotation Vector

Next Part: Support in fusion sensor to handle hal (replace rv_raw)

Change-Id: I736bd022626eed5e9086b9040906b706130e161c

9 years agoAddition of Test case for fusion data collection 08/38008/7
Ankur [Thu, 9 Apr 2015 11:57:40 +0000 (17:27 +0530)]
Addition of Test case for fusion data collection

This test case registers accelerometer, gyroscope, magnetometer and proximity sensors from one single client.
This is useful for collecting data from these physical sensors for any particular motion.

Change-Id: Ie2c866c5ec624290f9988b17ee33ea92bc8752ca

9 years agoMerge "Adding polling based test functionality for sensors" into tizen
Mu-Woong Lee [Mon, 11 May 2015 07:28:21 +0000 (00:28 -0700)]
Merge "Adding polling based test functionality for sensors" into tizen

9 years agoAdding polling based test functionality for sensors 26/37926/8
Vibhor Gaur [Wed, 8 Apr 2015 12:06:30 +0000 (17:36 +0530)]
Adding polling based test functionality for sensors

-Adding functionality for getting sensor event logs using polling mechansim.
-Change is being integrated in the test suite after there was amajor restructuring of the test folder to combine all tests into one.

Change-Id: I23a817895a9e7db8f7c4284f0d0c6c697476f5e9

9 years agoMerge "Modifying error/return conditions during fusion sensor initialization" into...
Mu-Woong Lee [Mon, 11 May 2015 06:04:24 +0000 (23:04 -0700)]
Merge "Modifying error/return conditions during fusion sensor initialization" into tizen

9 years agoMerge "Restructuring get_device_orientation flow" into tizen
Mu-Woong Lee [Mon, 11 May 2015 06:02:15 +0000 (23:02 -0700)]
Merge "Restructuring get_device_orientation flow" into tizen

9 years agoMerge "Removing Compiler warning - unused variable" into tizen
Mu-Woong Lee [Mon, 11 May 2015 05:56:40 +0000 (22:56 -0700)]
Merge "Removing Compiler warning - unused variable" into tizen

9 years agoModifying error/return conditions during fusion sensor initialization 73/37373/3
Ramasamy [Wed, 25 Mar 2015 10:00:59 +0000 (15:30 +0530)]
Modifying error/return conditions during fusion sensor initialization

- Only failure of accel object initialization will return error
- Failure of gyro and magnetic object initialization will print info

Change-Id: I6cf67581d4a5fd18d87e418f095a067ceb07841e

9 years agoRemoved Compiler warning - incompatible pointer type 72/38972/1
Ankur [Tue, 5 May 2015 12:03:02 +0000 (17:33 +0530)]
Removed Compiler warning - incompatible pointer type

Change-Id: I73f52ea6bb3b7e6f5306bc1cc32c6d1cbf953648

9 years agoRemoving Compiler warning - unused variable 59/38959/1
Ankur [Mon, 4 May 2015 05:50:25 +0000 (11:20 +0530)]
Removing Compiler warning - unused variable

Removed unused variable

Change-Id: I73b3c36d2e30024fbb7e9f75014574bc1957ec77

9 years agoRestructuring get_device_orientation flow 67/37367/2
Ramasamy [Wed, 25 Mar 2015 09:22:37 +0000 (14:52 +0530)]
Restructuring get_device_orientation flow

- restructuring orientation_filter::get_device_orientation flow for easier maintenance
- cleanup

Change-Id: Ie1bf8025d462d71146db2466b67a3e9f8585e31c

9 years agoAdding new test case for testing sensors in parallel 33/37233/5
Ankur [Mon, 23 Mar 2015 07:05:03 +0000 (12:35 +0530)]
Adding new test case for testing sensors in parallel

This test case runs multiple sensor tests in parallel. It can be used for performance analysis of the various modules.

Change-Id: I10a3e7ec98140ce6ecdcb6a29a0b8d6052e3287e

9 years agoRestructuring test folder to include parallel sensor test case 93/37193/2
Ankur [Fri, 20 Mar 2015 10:38:08 +0000 (16:08 +0530)]
Restructuring test folder to include parallel sensor test case

Restructured the test folder to separate the functions from tc-common because
they will also be used by a new test case (to be added in the next patch) for testing multiple test cases in parallel.

Change-Id: If36de3b1123bd3811516fa859be73a753dc686e7

9 years agoUpdating event representation for rotation vector virtual sensor 92/37192/1
Vibhor Gaur [Fri, 20 Mar 2015 10:13:37 +0000 (15:43 +0530)]
Updating event representation for rotation vector virtual sensor

-Updating rpresentation from ROTATION_VECTOR_EVENT_RAW_DATA_REPORT_ON_TIME to ROTATION_VECTOR_RAW_DATA_EVENT

Change-Id: Iaee8da2a4523f48a08a251ab931e4fc82ccb0911

9 years agoUpdating octave design files for orientation 27/37027/1
Ramasamy [Wed, 18 Mar 2015 09:04:29 +0000 (14:34 +0530)]
Updating octave design files for orientation

- Updating octave design files based on latest sensor fusion C/C++
library code.

- Matching the functionalities between the octave code and C/C++
library code.

Change-Id: I24f26381fc07c5237d3965ddddb01a9d8c2013c3

9 years agoUpdating orientation sensor standalone test files 25/37025/1
Ramasamy [Wed, 18 Mar 2015 08:57:50 +0000 (14:27 +0530)]
Updating orientation sensor standalone test files

- Updating orientation sensor standalone test files after
restructuring or sensor fusion

Change-Id: I58519ba358290142d585f2d5aea9e667c61a4f33

9 years agoFixing gyro data handling and cleanup 23/37023/1
Ramasamy [Wed, 18 Mar 2015 08:46:45 +0000 (14:16 +0530)]
Fixing gyro data handling and cleanup

- Fixing code related to input gyro data handling.
- cleanup of orientation filter code.

Change-Id: I9efd0c69ed7c2ab0dcc334e460723d9f8cdea668

9 years agoImproved rotation matrix to quaternion conversion 20/37020/1
Ramasamy [Wed, 18 Mar 2015 08:02:51 +0000 (13:32 +0530)]
Improved rotation matrix to quaternion conversion

- This has better azimuth computation response over previous
implementation.

Change-Id: Ie631f1f3e3815c4553d4bb51efdabf23738f680a

9 years agoFixing value assignment to m_orientation 73/36873/1
Ramasamy [Mon, 16 Mar 2015 13:50:01 +0000 (19:20 +0530)]
Fixing value assignment to m_orientation

- fixing value assignment for m_orientation in orientation_filter
- cleanup of fusion_sensor

Change-Id: I3442dd275adc3952ff92b5911bcab2b6751ccf79

9 years agoMoving azimuth offset after rotation compensation 70/36870/1
Ramasamy [Mon, 16 Mar 2015 13:45:36 +0000 (19:15 +0530)]
Moving azimuth offset after rotation compensation

- moving computation of azimuth to range 0-360 after compensating
for azimuth rotation.
- initializing fusion sensor pointer.

Change-Id: Ie13af01dd3e76f2a3dd0bc1f2ae68726bcf3073d

9 years agoUpdating spec file after fusion framework restructuring 21/36821/1
Ramasamy [Mon, 16 Mar 2015 03:36:22 +0000 (09:06 +0530)]
Updating spec file after fusion framework restructuring

- updating the spec file to support new fusion framework structure as
this was not committed earlier.

Change-Id: If85a6286d23c2c656a0bb81570872fc0782526b1

9 years agoUpdating Rotation Vector sensor after fusion restructuring 97/36697/1
Ramasamy [Thu, 12 Mar 2015 03:45:32 +0000 (09:15 +0530)]
Updating Rotation Vector sensor after fusion restructuring

- Works in combination with the new fusion sensor
- supports new configuration xml
- cleanup

Change-Id: I0670885257fe0d5c607f1de87da74811985ab03f

9 years agoUpdating Geomagnetic RV sensor after fusion restructuring 96/36696/3
Ramasamy [Thu, 12 Mar 2015 03:39:30 +0000 (09:09 +0530)]
Updating Geomagnetic RV sensor after fusion restructuring

- Works in combination with the new fusion sensor
- supports new configuration xml
- cleanup

Change-Id: I60fec833776d3c5d3cbfc76f8fdaf3c7a198a708

9 years agoUpdating Gaming RV sensor after fusion restructuring 95/36695/1
Ramasamy [Thu, 12 Mar 2015 03:37:54 +0000 (09:07 +0530)]
Updating Gaming RV sensor after fusion restructuring

- Works in combination with the new fusion sensor
- supports new configuration xml
- cleanup

Change-Id: Icdacfa0bda9a247123eea07669a61c8e3d87bc1a

9 years agoUpdating orientation sensor after fusion restructuring 94/36694/1
Ramasamy [Thu, 12 Mar 2015 03:35:18 +0000 (09:05 +0530)]
Updating orientation sensor after fusion restructuring

- Works in combination with the new fusion sensor
- supports new configuration xml
- cleanup

Change-Id: I0694ff6c2cc5c4ab8d9000d53359eefc39198302

9 years agoUpdating sensor plugin loader and cmake files 93/36693/1
Ramasamy [Thu, 12 Mar 2015 03:32:45 +0000 (09:02 +0530)]
Updating sensor plugin loader and cmake files

- Adding sensor_fusion module to sensor plugin loader.
- Adding fusion folder to master cmake file.

Change-Id: I3ef1329b6c79d2123c458645c2fa6f9532a67988

9 years agoUpdating orientation filter to support new configuration handling 63/36663/1
Ramasamy [Wed, 11 Mar 2015 12:06:41 +0000 (17:36 +0530)]
Updating orientation filter to support new configuration handling

- Updated/cleanup of orientation filter to support new configuration
handling

Change-Id: I5a8b7001db7edbf48d88945937b7eede1f31fa37

9 years agoAdding API for fusion sensor 61/36661/1
Ramasamy [Wed, 11 Mar 2015 12:01:30 +0000 (17:31 +0530)]
Adding API for fusion sensor

- Added new fusion sensor events and included to sensor API
- Adding cmake support for API

Change-Id: Ib3acb6bb7329b84a54abac8fad0373be40dc631f

9 years agoUpdating virtual sensor configuration based on fusion sensor 60/36660/1
Ramasamy [Wed, 11 Mar 2015 11:47:27 +0000 (17:17 +0530)]
Updating virtual sensor configuration based on fusion sensor

- Adding new fusion sensor configuration
- Cleaning up existing fusion related configuration from orientation,
rotation vector, geomagnetic rotation vector and gaming rotation vector

Change-Id: Icb2284875fc84782a5df2321c49411e59b333390

9 years agoAdding method to unregister supported events for sensor_base 59/36659/1
Ramasamy [Wed, 11 Mar 2015 11:42:47 +0000 (17:12 +0530)]
Adding method to unregister supported events for sensor_base

- method is needed in virtual sensors to dynamically add and remove
virtual sensor events used in fusion sensor.

Change-Id: I1265808d67f79d240c2e2239c50ff5c02a098d16

9 years agoAdding new fusion sensor for single flow 42/36242/4
Ramasamy [Wed, 4 Mar 2015 06:30:37 +0000 (12:00 +0530)]
Adding new fusion sensor for single flow

- Adding new fusion sensor which executes orientation_filter only once
for all virtual sensors.
- Generates multiple events for orientation sensor, rv sensor, gaming_rv sensor
and geomagnetic_rv sensor based on event type registration
- Will work in complementary fashion to virtual sensors orientation, rv, gaming_rv and geomagnetic_rv
- maintains minimum operation interval.
- Sends only fusion events that are registered by applications

Change-Id: I1dfecc545a0f25647e7ec299c5f0a2bae05e6456

9 years agoRemoving orientation_filter standalone test 32/36232/1
Ramasamy [Wed, 4 Mar 2015 03:23:18 +0000 (08:53 +0530)]
Removing orientation_filter standalone test

- orientation_sensor standalone test performs all testing functionality
for orientation_filter
- removing redundant standalone test for orientation_filter

Change-Id: Ia688cb7f8334d6885709f5f47c614279fb988f74

9 years agoRestructuring all virtual sensors and sensor fusion for single flow 08/36208/1
Ramasamy [Tue, 3 Mar 2015 11:52:55 +0000 (17:22 +0530)]
Restructuring all virtual sensors and sensor fusion for single flow

- Removed separate methods for computing orientation/RVs and replaced
with single method
- Updated virtual sensors to use the single sensor fusion method
- Updated test files for using single method
- Cleanup.

Change-Id: Iacd555215cf1c146e2aa75451baa92751e67a2e1

9 years agoUpdating gaming_rv sensor to follow single sensor fusion flow 98/36198/2
Ramasamy [Tue, 3 Mar 2015 10:12:05 +0000 (15:42 +0530)]
Updating gaming_rv sensor to follow single sensor fusion flow

- The geomagnetic sensor input pointer is passed a value NULL
- Cleaning up unused initialization code and old flow code

Change-Id: I96e90b6a19e89b80071b8b821b486691640ce0d5

9 years agoUpdating geomagnetic_rv sensor to follow single sensor fusion flow 76/36176/2
Ramasamy [Tue, 3 Mar 2015 10:03:29 +0000 (15:33 +0530)]
Updating geomagnetic_rv sensor to follow single sensor fusion flow

- The gyro input pointer is passed a value NULL
- Cleaning up unused initialization code and old flow code

Change-Id: I438d8dc1615d2e9dcc3188c9f06ca7d8aa042d4c

9 years agoUpdating rotation vector sensor to follow single sensor fusion flow 59/36159/2
Ramasamy [Tue, 3 Mar 2015 09:44:23 +0000 (15:14 +0530)]
Updating rotation vector sensor to follow single sensor fusion flow

- updating rotation vector virtual sensor and related orientation_filter
  code to follow single sensor fusion flow.
- cleanup of initialization code and common code with orientation sensor
- updating orientation sensor code after code cleanup

Change-Id: I28593ec06711575b0646153b3f1fcc0cc43bf932

9 years agoChanging orientation sensor to follow single sensor fusion flow 06/36106/2
Ramasamy [Mon, 2 Mar 2015 11:56:40 +0000 (17:26 +0530)]
Changing orientation sensor to follow single sensor fusion flow

- Updating orientation sensor to work on common single sensor fusion
code flow.

Change-Id: I5581e833e33757a0e24d56a90717473bded3e172

9 years agoFixing return type issue in tc-common 04/36104/2
Ramasamy [Mon, 2 Mar 2015 11:35:23 +0000 (17:05 +0530)]
Fixing return type issue in tc-common

- Changing unsigned int to int for event variables and fixing warning.
- cleanup

Change-Id: I76c30ee886352e194f78ef40c245ab2989244972

9 years agoAdding methods for common sensor_fusion flow 99/36099/1
Ramasamy [Mon, 2 Mar 2015 10:27:24 +0000 (15:57 +0530)]
Adding methods for common sensor_fusion flow

- Adding new methods for a common orientation computation flow
irrespective of the sensors used in the inputs
- Changing sensor inputs to pointers for checking if inputs are
enabled.
- Tested on rotation_matrix functionality which is not used in any
virtual sensor and using standalone test code.

Change-Id: I763305f06346db2cce87c61e870c0a43f0d1e0e0

9 years agoUpdating documentation code for gaming_rv and geomagnetic_rv 88/36088/1 accepted/tizen_3.0.2015.q2_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/3.0.2015.q2/common/20150625.135020 accepted/tizen/common/20150521.125440 accepted/tizen/mobile/20150313.083941 accepted/tizen/tv/20150302.123848 accepted/tizen/tv/20150313.083825 accepted/tizen/wearable/20150313.083854 submit/tizen/20150304.022845 submit/tizen_3.0.2015.q2_common/20150625.134010 submit/tizen_common/20150303.022446 submit/tizen_common/20150520.888885 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_mobile/20150303.022210 submit/tizen_mobile/20150313.022842 submit/tizen_tv/20150302.084059 submit/tizen_tv/20150313.022842 submit/tizen_wearable/20150313.022842 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Ramasamy [Mon, 2 Mar 2015 07:30:08 +0000 (13:00 +0530)]
Updating documentation code for gaming_rv and geomagnetic_rv

Updating/correcting documentation code in api for gaming_rv and
geomagnetic_rv sensors

Change-Id: I286b82a8931a6922c4c8d9aeeca9749c23b4e51c

9 years agoAdding code to install sensor_gaming_rv.h to CMakelist 87/36087/1
Ramasamy [Mon, 2 Mar 2015 07:27:59 +0000 (12:57 +0530)]
Adding code to install sensor_gaming_rv.h to CMakelist

Adding missed cmake code to install sensor_gaming_rv.h

Change-Id: I4f60e0cebddad7176814e6d96aefd77da9ecf53b

9 years agoRemoving mutex lock that was affecting performance 01/36001/1
Ramasamy [Fri, 27 Feb 2015 09:33:57 +0000 (15:03 +0530)]
Removing mutex lock that was affecting performance

- Removing mutex lock used during entry into orientation_filter
- lock is not needed as each virtual sensor has a separate
orientation_filter object
- separate objects in virtual sensor for both event driven and
polling based modes.

Change-Id: Ie2d2aa41a664c858fc1305213c3f9bb2309a7e67

9 years agoAdding latest timestamp for virtual sensor polling events 97/35997/1
Ramasamy [Fri, 27 Feb 2015 09:23:07 +0000 (14:53 +0530)]
Adding latest timestamp for virtual sensor polling events

- Fixing timestamp issue for polling based virtual sensor
events.
- cleanup.

Change-Id: Ie1c18f8f2b94b48eae7c84a723ddf0b56e0059f6

9 years agoRemoving redundant event representations for context sensor 69/35869/4
Vibhor Gaur [Thu, 26 Feb 2015 12:48:42 +0000 (18:18 +0530)]
Removing redundant event representations for context sensor

Removed redundant context sensor events CONTEXT_BASE_DATA_SET and CONTEXT_EVENT_REPORT which were the same.
These have been moved to the sensor_deprecated folder.
Since both these represent the same context sensor event, DATA_SET type has been removed. CONTEXT_EVENT_REPORT has been renamed to CONTEXT_REPORT_EVENT to make it simpler.

Change-Id: Iaca58e1b48e19adabf5edc1d6a001933cd4ec910

9 years agoRemoving redundant linear acceleration virtual sensor events 57/35857/4
Vibhor Gaur [Wed, 25 Feb 2015 11:16:46 +0000 (16:46 +0530)]
Removing redundant linear acceleration virtual sensor events

Removed redundant linear acceleration virtual sensor events LINEAR_ACCEL_BASE_DATA_SET and LINEAR_ACCEL_EVENT_RAW_DATA_REPORT_ON_TIME which were the same. These have been moved to the sensor_deprecated folder.
LINEAR_ACCEL_BASE_DATA_SET was used for polling events and LINEAR_ACCEL_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven.
Since both these represent the same linear acceleration virtual sensor event, DATA_SET type has been removed.
LINEAR_ACCEL_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to LINEAR_ACCEL_RAW_DATA_EVENT to make it simpler.
The change has been tested on rd-pq device for all sensord API and all API were found to be working

Change-Id: Ib0603a497ef5132917aa46d9c4055bf1377dfb68

9 years agoRemoved redundant orientation virtual sensor events 51/35851/5
Vibhor Gaur [Wed, 25 Feb 2015 10:36:58 +0000 (16:06 +0530)]
Removed redundant orientation virtual sensor events

Removed redundant orientation events ORIENTATION_BASE_DATA_SET and ORIENTATION_EVENT_RAW_DATA_REPORT_ON_TIME which were the same.
These have been moved to the sensor_deprecated folder.
ORIENTATION_BASE_DATA_SET was used for polling events and ORIENTATION_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven Since both these represent the same orientation virtual sensor event, DATA_SET type has been removed.
ORIENTATION_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to ORIENTATION_RAW_DATA_EVENT to make it simpler.
The change has been tested on rd-pq device for all sensord API and all API were found to be working

Change-Id: Iac7080cef6483b4fcaf5a454739ab1be50a57d23

9 years agoRemoved redundant gravity events 46/35846/4
Ankur [Wed, 25 Feb 2015 09:56:11 +0000 (15:26 +0530)]
Removed redundant gravity events

GRAVITY_BASE_DATA_SET and GRAVITY_EVENT_RAW_DATA_REPORT_ON_TIME were the same
GRAVITY_BASE_DATA_SET has been removed.

GRAVITY_BASE_DATA_SET was used for polling events and GRAVITY_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven
Since both these represent the same gravity sensor event, DATA_SET type has been removed.

And GRAVITY_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to GRAVITY_RAW_DATA_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: I224d0ccfd8b4e48c132a357f410028d6a1cfe7de

9 years agoRemoving redundant Light sensor events 84/35784/7
Ankur [Tue, 24 Feb 2015 13:32:25 +0000 (19:02 +0530)]
Removing redundant Light sensor events

LIGHT_LUX_DATA_SET and LIGHT_EVENT_LUX_DATA_REPORT_ON_TIME were the same
LIGHT_LUX_DATA_SET has been removed.

LIGHT_LUX_DATA_SET was used for polling events and LIGHT_EVENT_LUX_DATA_REPORT_ON_TIME was used for event driven
Since both these represent the same light sensor event, DATA_SET type has been removed.

And LIGHT_EVENT_LUX_DATA_REPORT_ON_TIME has been renamed to LIGHT_LUX_DATA_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: I44a761251a6fc9e78333f022b131c2562d65ccb9

9 years agoRemoving redundant auto_rotation events 76/35776/8
Ankur [Thu, 26 Feb 2015 12:00:27 +0000 (17:30 +0530)]
Removing redundant auto_rotation events

AUTO_ROTATION_BASE_DATA_SET and AUTO_ROTATION_EVENT_CHANGE_STATE were the same
AUTO_ROTATION_BASE_DATA_SET has been removed.

AUTO_ROTATION_BASE_DATA_SET was used for polling events and AUTO_ROTATION__EVENT_CHANGE_STATE was used for event driven
Since both these represent the same auto_rotation sensor event, DATA_SET type has been removed.

And AUTO_ROTATION_EVENT_CHANGE_STATE has been renamed to AUTO_ROTATION_CHANGE_STATE_EVENT to make it simpler.

Change-Id: I8523af6c00dd2919bb6b9f0606c48d5df37ff0c9

9 years agoUpdating configuration file for loading missing so files 18/35918/2
Ramasamy [Thu, 26 Feb 2015 06:03:25 +0000 (11:33 +0530)]
Updating configuration file for loading missing so files

- Updating sensor_plugins.xml configuration file for loading
missing geomagnetic rotation vector and gaming rotation vector
plugins.

Change-Id: I4bfec9344f30e2b13b0a9b908454e90cd7e517c2

9 years agoAdding different RD-PQ hardware virtual sensor xml configuration 72/35872/2
Ramasamy [Wed, 25 Feb 2015 12:06:20 +0000 (17:36 +0530)]
Adding different RD-PQ hardware virtual sensor xml configuration

The sensor hardware behavior has been found to be different for 2
different variants of the RD-PQ hardware used for development.
Adding the virtual sensor xml configuration for the 2nd RD-PQ
hardware that is tested.

Change-Id: Ic1c13b7a5da7cb9802d07c5401e04151d56a89e9

9 years agoReplacing mul() with operator *() after rebase 15/35815/2
Ramasamy [Wed, 25 Feb 2015 04:48:07 +0000 (10:18 +0530)]
Replacing mul() with operator *() after rebase

mul() method has been replaced with *() in one of the other
commits. Rebasing according to the change.

Change-Id: I1f332dbe3413f2b08e1107783c59cdca48f54c71

9 years agoUpdating sensord spec files and CMakelist files for Gaming RV 61/35761/3
Ramasamy [Tue, 24 Feb 2015 10:00:20 +0000 (15:30 +0530)]
Updating sensord spec files and CMakelist files for Gaming RV

Adding build support for Gaming RV to spec file and CMakelist file for
sensord repository

Change-Id: I5ce0a9f129cbfcf25f52e878d4e7297942d098bb

9 years agoUpdating priority queue code for Gaming RV 59/35759/3
Ramasamy [Tue, 24 Feb 2015 09:52:49 +0000 (15:22 +0530)]
Updating priority queue code for Gaming RV

Enabling the priority queue support for input events of Gaming RV

Change-Id: I722cf91986680de6d1505bc5b45d044aa23681b2

9 years agoUpdating test automation files to support Gaming RV 54/35754/5
Ramasamy [Thu, 26 Feb 2015 07:07:38 +0000 (12:37 +0530)]
Updating test automation files to support Gaming RV

Updating auto_test and tc-common test automation files to support
Gaming RV virtual sensor

Change-Id: Ib8466cbe6683a1bb2eba3ec602d7892f5b80ad35

9 years agoUpdating XML configuration for Gaming RV virtual sensor 53/35753/4
Ramasamy [Tue, 24 Feb 2015 08:52:25 +0000 (14:22 +0530)]
Updating XML configuration for Gaming RV virtual sensor

Updating the Gaming rotation vector XML configuration file for
emulator and RD-PQ device profiles.

Change-Id: I6cb0095eda1708432bb2fd3c8285c426ee13eaf6

9 years agoUpdating sensor API for Gaming RV virtual sensor 51/35751/5
Ramasamy [Tue, 24 Feb 2015 08:46:14 +0000 (14:16 +0530)]
Updating sensor API for Gaming RV virtual sensor

Adding sensor API related changes for Gaming RV virtual sensor.

Change-Id: If0e5dc62e1f122739b888c14e61ee3e8d66e9aca

9 years agoAdding CMake files for adding gaming rotation vector 49/35749/4
Ramasamy [Tue, 24 Feb 2015 08:31:41 +0000 (14:01 +0530)]
Adding CMake files for adding gaming rotation vector

Adding new CMakelist file and updating existing CMakelist file for
rotation vector.

Change-Id: Ic65bc47d2d375e5e2d64dfc3deb515b08fc7261c

9 years agoAdding implementation for gaming_rv class 45/35745/3
Ramasamy [Tue, 24 Feb 2015 08:13:40 +0000 (13:43 +0530)]
Adding implementation for gaming_rv class

Adding file for implementation of gaming_rv class methods

Change-Id: Ie6362ff80ab55d6c6283b8d9ecb06414bd7791a0

9 years agoAdding gaming rotation vector class definition 44/35744/3
Ramasamy [Tue, 24 Feb 2015 08:08:13 +0000 (13:38 +0530)]
Adding gaming rotation vector class definition

Adding new class gaming_rv which computes device orientation
quaternion using accelerometer and gyroscope sensor inputs.

Change-Id: If653b55bd1aabf3f47e6e1065bdeb93c82f0dbc2

9 years agoCleaning CMake files for unused package dependencies 36/35736/4
Ramasamy [Tue, 24 Feb 2015 06:24:06 +0000 (11:54 +0530)]
Cleaning CMake files for unused package dependencies

- Removing all unused package dependencies in CMakelist files
- Sometimes build hangs while searching for packages that
are added in each CMake files.

Change-Id: Iff099501d1e4a7c03c74a34ce8f800490bbdff57

9 years agoRemoving unused vconf dependencies in shared folder 34/35734/2
Ramasamy [Tue, 24 Feb 2015 06:20:05 +0000 (11:50 +0530)]
Removing unused vconf dependencies in shared folder

- removing vconf header file in csensor_event_dispatcher as it is
not used
- removing vconf dependency from make file

Change-Id: Ia84bee39465876adcc8abb00b933d25e0155c956

9 years agoFixing Geomagnetic RV test files and event representation 32/35732/2
Ramasamy [Thu, 26 Feb 2015 06:38:56 +0000 (12:08 +0530)]
Fixing Geomagnetic RV test files and event representation

- Fixing geomagnetic rv test file
- Changing geomagnetic rv event name in package

Change-Id: I4f8f7ca7da9b2f7745efadbffa076955f9bbd5df

9 years agoShifting redundant event representations to sensor_deprecated.h file 71/35771/2 submit/tizen_tv/20150226.040306 submit/tizen_tv/20150226.063944
Vibhor Gaur [Tue, 24 Feb 2015 11:55:53 +0000 (17:25 +0530)]
Shifting redundant event representations to sensor_deprecated.h file

-Redundant event representations were removed for accelerometer,gyroscope,proximity,pressure and geomagnetic sensor.
-These representations have been shifted to sensor_deprecated.h in case other packages outside sensord are using these representations.

Change-Id: I7e05fcee9153351cae3a095d4966d67598a6b960

9 years agoRemoving redundant temperature sensor events 06/35706/6
Vibhor Gaur [Mon, 23 Feb 2015 14:27:54 +0000 (19:57 +0530)]
Removing redundant temperature sensor events

TEMPERATURE_BASE_DATA_SET and TEMPERATURE_EVENT_RAW_DATA_REPORT_ON_TIME were the same.
TEMPERATURE_BASE_DATA_SET has been removed.
TEMPERATURE_BASE_DATA_SET was used for polling events and TEMPERATURE_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven.
Since both these represent the same pressure event, DATA_SET type has been removed and TEMPERATURE_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to TEMPERATURE_RAW_DATA_EVENT to make it simpler.
These representations have been shifted to sensor_deprecated.h in case other packages outside sensord are using these representations.

Change-Id: I7ebe005fcb2dd236cabf4c209a4456973f4597d1

9 years agosensord: remove sensor.h which supports some packages because it is 25/35525/2
Kibak Yoon [Tue, 17 Feb 2015 05:53:52 +0000 (14:53 +0900)]
sensord: remove sensor.h which supports some packages because it is
unnecessary.

It doesn't need to support sensor.h for some packages use internal api
any more.

Change-Id: I814d198c85ac44e01349dbf5741ff50501a6ae48
Signed-off-by: Kibak Yoon <kibak.yoon@samsung.com>
9 years agoCorrecting indentation for if condition and adding error handling statement for senso... 01/35701/3
Vibhor Gaur [Mon, 23 Feb 2015 12:53:29 +0000 (18:23 +0530)]
Correcting indentation for if condition and adding error handling statement for sensord_unregister_event

-Correcting the position of the starting brace in the if condition.
-Adding error handling condition in the common test folder for unregistering the event.
-Changes have been made as per reviews in previous patches.

Change-Id: I407bb6a22ddf0756aed2e7c3649a1c3490a7ba28

9 years agoChanges as per the reviews on the previous patches 04/35704/2
Ankur [Mon, 23 Feb 2015 13:30:17 +0000 (19:00 +0530)]
Changes as per the reviews on the previous patches

As per the reviews on the previous patches, submitting a patch with all the changes suggested in the reviews.

Tested on RD-PQ device

Change-Id: I15e79bdd0331c17908cc62fa523bab188cc28295

9 years agoUpdating orientation xml configuration for RD-PQ target 16/35616/2
Ramasamy [Thu, 19 Feb 2015 11:47:02 +0000 (17:17 +0530)]
Updating orientation xml configuration for RD-PQ target

- Updating RD-PQ xml configuration for orientation virtual sensor.
- Updating RD-PQ xml configuration for geomagnetic rv virtual
  sensor.
- Updating RD-PQ xml configuration for rotation vector virtual
  sensor.
- W3C compliance for orientation rotations.

Change-Id: I55e23be69b09030de636d151d86f86b472266b76

9 years agoRemoving redundant geomagnetic sensor events 75/35575/4
Vibhor Gaur [Mon, 23 Feb 2015 09:30:28 +0000 (15:00 +0530)]
Removing redundant geomagnetic sensor events

GEOMAGNETIC_BASE_DATA_SET and GEOMAGNETIC_EVENT_RAW_DATA_REPORT_ON_TIME were the same GEOMAGNETIC_BASE_DATA_SET has been removed.
GEOMAGNETIC_BASE_DATA_SET was used for polling events and GEOMAGNETIC_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven.
Since both these represent the same pressure event, DATA_SET type has been removed.

And GEOMAGNETIC_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to GEOMAGNETIC_RAW_DATA_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: Idacbdd970cb3d701ee7fbb0a882b7899fffc9fce

9 years agoRemoving redundant pressure sensor events 72/35572/7
Vibhor Gaur [Wed, 18 Feb 2015 12:34:15 +0000 (18:04 +0530)]
Removing redundant pressure sensor events

PRESSURE_BASE_DATA_SET and PRESSURE_EVENT_RAW_DATA_REPORT_ON_TIME were the same PRESSURE_BASE_DATA_SET has been removed.
PRESSURE_BASE_DATA_SET was used for polling events and PRESSURE_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven
Since both these represent the same pressure event, DATA_SET type has been removed.

And PRESSURE_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to PRESSURE_RAW_DATA_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: I6d4a0c81787dab67b3f61a2c511b181c50a763d1

9 years agoRemoving redundant proximity events 70/35570/6
Ankur [Wed, 18 Feb 2015 11:51:21 +0000 (17:21 +0530)]
Removing redundant proximity events

PROXIMITY_BASE_DATA_SET and PROXIMITY_EVENT_CHANGE_STATE were the same
PROXIMITY_BASE_DATA_SET has been removed.

PROXIMITY_BASE_DATA_SET was used for polling events and PROXIMITY_EVENT_CHANGE_STATE was used for event driven
Since both these represent the same proximity event, DATA_SET type has been removed.

And PROXIMITY_EVENT_CHANGE_STATE has been renamed to PROXIMITY_CHANGE_STATE_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: Idb5a5213fdeecdeef0503b8f7388cdb2b0b36385

9 years agoRemoving redundant gyroscope events 69/35569/2
Ankur [Wed, 18 Feb 2015 11:25:35 +0000 (16:55 +0530)]
Removing redundant gyroscope events

GYRO_BASE_DATA_SET and GYROSCOPE_EVENT_RAW_DATA_REPORT_ON_TIME were the same
GYRO_BASE_DATA_SET has been removed.

GYRO_BASE_DATA_SET was used for polling events and GYROSCOPE_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven
Since both these represent the same gyroscope event, DATA_SET type has been removed.

And GYROSCOPE_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to GYROSCOPE_RAW_DATA_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: Ie4d6642691a8d57abed5f0b6387922fc871904c4

9 years agoRemoving redundant accelerometer events 66/35566/3
Ankur [Wed, 18 Feb 2015 10:27:13 +0000 (15:57 +0530)]
Removing redundant accelerometer events

ACCELEROMETER_BASE_DATA_SET and ACCELEROMETER_EVENT_RAW_DATA_REPORT_ON_TIME were the same
ACCELEROMETER_BASE_DATA_SET has been removed.

ACCELEROMETER_BASE_DATA_SET was used for polling events and ACCELEROMETER_EVENT_RAW_DATA_REPORT_ON_TIME was used for event driven
Since both these represent the same accelerometer event, DATA_SET type has been removed.

And ACCELEROMETER_EVENT_RAW_DATA_REPORT_ON_TIME has been renamed to ACCELEROMETER_RAW_DATA_EVENT to make it simpler.

The change has been tested on rd-pq device for all sensord API and all API were found to be working.

Change-Id: I7602335045a1847b9ea3e58247b6ddcc82bbda7f

9 years agoCommon test folder and automated testing of sensor APIs - Feature merge from devel... 65/35565/6
Vibhor Gaur [Mon, 16 Feb 2015 12:33:49 +0000 (18:03 +0530)]
Common test folder and automated testing of sensor APIs - Feature merge from devel/tizen branch

-This is last of the four patches being submitted to merge the changes from devel/tizen to tizen branch. This contains the changes for making a common test folder for all sensors and an automatic test to test sensor APIs for sensors.
-This patch also tests all the four patches submitted for merging features from devel/tizen to tizen branch.

Change-Id: I2a101d14ea2ebbb92342232f89f4f17a3889c148

9 years agoGaming rotation vector - Feature merge from devel/tizen branch 10/35410/3
Vibhor Gaur [Fri, 13 Feb 2015 10:03:50 +0000 (15:33 +0530)]
Gaming rotation vector - Feature merge from devel/tizen branch

This is third of the four patches being submitted to merge the changes from devel/tizen to tizen branch.
This contains the changes for adding gaming rotation vector virtual sensor.
Build has been checked for armv7l and aarch64 for public repo.

Change-Id: I2da4478c01bf450d49240800695b57969ae22be7

9 years agoGeomagnetic Sensor file - Feature merge from devel/tizen branch 65/35365/3
Ankur [Thu, 12 Feb 2015 14:02:03 +0000 (19:32 +0530)]
Geomagnetic Sensor file - Feature merge from devel/tizen branch

This is second of the four patches being submitted to merge the changes from devel/tizen to tizen branch.
This contains the changes for adding geomagnetic rotation vector virtual sensor.

Build has been checked for armv7l and aarch64 for public repo.

Change-Id: Ie91229c349a452e8d24e7d831c258f1b9d26d72e

9 years agoOptimization of template structure - Feature merge from devel/tizen branch 56/35356/3
Ankur [Thu, 12 Feb 2015 12:27:12 +0000 (17:57 +0530)]
Optimization of template structure - Feature merge from devel/tizen branch

This is one of the four patches being submitted to merge the changes made to devel/tizen to tizen  branch.
This contains the feature where the template structure of the vector and matrix classes was changed.

Patch Set 3: Changes related to coding guidelines as per the comments

Build has been checked for armv7l and aarch64 for public repo.

Change-Id: Ia26d66b1ca351a22de92b858f6b60dbfee242d42

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