platform/core/system/sensord.git
9 years agoMerge "Gyro sensor plugin synchronization with IIO interface support" into tizen
Kibak Yoon [Fri, 14 Nov 2014 02:06:35 +0000 (18:06 -0800)]
Merge "Gyro sensor plugin synchronization with IIO interface support" into tizen

9 years agoMerge "Synchronizing sensord code with IIO driver support for accelerometer plugin...
Kibak Yoon [Fri, 14 Nov 2014 02:03:42 +0000 (18:03 -0800)]
Merge "Synchronizing sensord code with IIO driver support for accelerometer plugin" into tizen

9 years agoGyro sensor plugin synchronization with IIO interface support 24/30124/1
Amit Dharmapurikar [Tue, 11 Nov 2014 12:01:38 +0000 (17:31 +0530)]
Gyro sensor plugin synchronization with IIO interface support

- Modified gyro plugin as per latest code
- Added IIO driver interface support on RD-PQ target
- Added a minor fix in sensor_hal class and modifide accel_sensor_hal.cpp accordingly

Change-Id: I86b40f1f4c4bfecfda6406694c4c650751109009
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoMerge "Updating orientation sensor based on porting to SDK" into tizen
Kibak Yoon [Mon, 3 Nov 2014 06:59:19 +0000 (22:59 -0800)]
Merge "Updating orientation sensor based on porting to SDK" into tizen

10 years agoSynchronizing sensord code with IIO driver support for accelerometer plugin 47/29547/2
Amit Dharmapurikar [Wed, 29 Oct 2014 11:40:34 +0000 (17:10 +0530)]
Synchronizing sensord code with IIO driver support for accelerometer plugin

The sensord code improvements are as follows:
  - sensor HAL plugin design has been changed to include common plugin code in sensor_hal parent
    class instead of individual sensor HAL plugins
  - the new plugin design allows easy modification for IIO or input based driver interface
  - sensor client library API has been changed
  - policy for loading plugins is based on configuration as well as the plugin directory path
  - code cleanup and bug fixes

Contributors:
Jae Hyun Jo <jaehyun7.jo@samsung.com>
Hyun-sung <hs81.go@samsung.com>
Kibak Yoon <kibak.yoon@samsung.com>
Amit Vithalrao Dharmapurikar <amit.vd@samsung.com>

Change-Id: I87776b07b6202af1c82ec4cdbff85df0553af8cb
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoUpdating orientation sensor based on porting to SDK 89/29589/1
Ramasamy [Thu, 30 Oct 2014 04:55:27 +0000 (10:25 +0530)]
Updating orientation sensor based on porting to SDK

- Updated orientation sensor class and implementation based on
porting and testing of tizen SDK.

Change-Id: I6eac7359fcf36af0b669922572dc7ae777aff1e3

10 years agoAdding sensor fusion pre-processing equations 06/29406/1
Ramasamy [Mon, 27 Oct 2014 11:30:56 +0000 (17:00 +0530)]
Adding sensor fusion pre-processing equations

Adding sensor fusion equations relating to post processing of sensor
related data.

Change-Id: I53ee77d6d982dc4e26540717280c29d8c74e9cb7

10 years agoRestructuring and Updating sensor fusion documentation 96/29096/3
Ramasamy [Tue, 21 Oct 2014 09:41:03 +0000 (15:11 +0530)]
Restructuring and Updating sensor fusion documentation

- restructuring documentation folder structure.
- Updating documentation for new diagrams.

Change-Id: Ib34df41528deb8630db87d1051d90960289d7df1

10 years agoAdding/Updating images for documentation 30/29030/1
Ramasamy [Mon, 20 Oct 2014 08:29:10 +0000 (13:59 +0530)]
Adding/Updating images for documentation

Adding updated sensor fusion documentation images for:
  - orientation estimation
  - gravity and linear accelertion computation
  - gravity projection diagram

Change-Id: I16140e327fdd18c18679b6ef3dc2a5889983bfc0

10 years agoMerge "Prioritizing event queue for virtual sensors" into tizen
Kibak Yoon [Mon, 20 Oct 2014 07:15:03 +0000 (00:15 -0700)]
Merge "Prioritizing event queue for virtual sensors" into tizen

10 years agoCleanup of sensor fusion library 29/28929/1
Ramasamy [Fri, 17 Oct 2014 07:30:29 +0000 (13:00 +0530)]
Cleanup of sensor fusion library

Cleanup and removal of unused code from sensor fusion library.

Change-Id: If738e42f5fd14af57dfb11aa2cd77c7c73718c30

10 years agoUpdating test file for gravity and orientation sensor 14/28814/2
Vibhor Gaur [Thu, 16 Oct 2014 10:54:01 +0000 (16:24 +0530)]
Updating test file for gravity and orientation sensor

-Updating error check conditions for start and stop handle.
-Removing redundant bool error_state variable.
-Removing redundant else condition after parameter count check.
-Removing redundant if condition assosciated with error_state.
-Updating print logs in callback by printing timestamp before other values.

Change-Id: I6a6144b6fb2806a7186580971ba4ff9ab97c7ab9

10 years agoPrioritizing event queue for virtual sensors 99/28599/11
Vibhor Gaur [Fri, 10 Oct 2014 09:37:16 +0000 (15:07 +0530)]
Prioritizing event queue for virtual sensors

-Prioritizing events coming from accelerometer,gyroscope and geomagnetic sensors in the event queue for orientation,gravity and linear acceleration virtual sensors.

Change-Id: I763b765190e5fd0a38897d874a3fccec413592e5

10 years agoUpdating test file for linear acceleration sensor 40/28740/4
Vibhor Gaur [Wed, 15 Oct 2014 08:50:22 +0000 (14:20 +0530)]
Updating test file for linear acceleration sensor

-Updating error check conditions for start and stop handle.
-Removing redundant bool error_state variable.
-Removing redundant else condition after parameter count check.
-Removing redundant if condition assosciated with error_state.
 -Updating print logs in callback by printing timestamp before other values.

Change-Id: I04151938310d11f2ce5b5a506ffb71180d2967b8

10 years agoMerge "Updating test file for gyroscope sensor" into tizen
Kibak Yoon [Wed, 15 Oct 2014 13:33:54 +0000 (06:33 -0700)]
Merge "Updating test file for gyroscope sensor" into tizen

10 years agoUpdating test file for gyroscope sensor 11/28711/3
Vibhor Gaur [Tue, 14 Oct 2014 12:08:35 +0000 (17:38 +0530)]
Updating test file for gyroscope sensor

-Updating error check conditions for start and stop handle.
-Removing redundant bool error_state variable.
-Removing redundant else condition after parameter count check.
-Removing redundant if condition assosciated with error_state.
-Updating print logs in callback by printing timestamp before other values.
-Fixing ./gyroscope to ./gyro n printformat as file name is gyro.c

Change-Id: Ia64d8dbee24f6fc85e54ec333fb6ff9067564156

10 years agoTemperature sensor HAL has been modified for compatibility with IIO based drivers 31/28231/1
Amit Dharmapurikar [Wed, 1 Oct 2014 05:04:26 +0000 (10:34 +0530)]
Temperature sensor HAL has been modified for compatibility with IIO based drivers

 - Added temperature sensor plugin code
 - As RD-PQ does not have separate temperature sensor, the plugin uses LPS331 interface for reading
   temperature data
 - As there is no event chr device, raw sysfs nodes are used for reading data
 - Enable/disable functions are not supported

Change-Id: Ida7b71fb4a3ec69cbcc5439255a5fe9421111b29
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoUpdating test file for accelerometer sensor 55/28155/4
Vibhor Gaur [Mon, 29 Sep 2014 06:52:11 +0000 (12:22 +0530)]
Updating test file for accelerometer sensor

-Adding license to accelerometer test file.
-Updating error check conditions for start and stop handle.
-Removing redundant bool error_state variablee.
-Removing redundant else condition after parameter count check.
-Removing redundant if condition assosciated with error_state.
-Updating print logs in callback by printing timestamp before other values.

Change-Id: Id1e6a4cec85c6d321dc66ab4bdda69511f7703c1

10 years agoMerge "Moving frequently used read_node_value template function to iio_common library...
Kibak Yoon [Fri, 26 Sep 2014 11:40:27 +0000 (04:40 -0700)]
Merge "Moving frequently used read_node_value template function to iio_common library" into tizen

10 years agoAdding test file for pressure sensor 01/28101/4
Vibhor Gaur [Fri, 26 Sep 2014 05:59:12 +0000 (11:29 +0530)]
Adding test file for pressure sensor

Adding test file for pressure sensor along with updated spec and cmake files.

Change-Id: Ic81fe9a6aa31637ac4d60fb5b773c22c30a1ee47

10 years agoMoving frequently used read_node_value template function to iio_common library 00/28100/1
Amit Dharmapurikar [Fri, 26 Sep 2014 06:13:09 +0000 (11:43 +0530)]
Moving frequently used read_node_value template function to iio_common library

Change-Id: I1c682fd091cdc03de539887ba01211aaa34041d6
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoAdding test file for proximity sensor 40/27940/6
Vibhor Gaur [Tue, 23 Sep 2014 09:58:04 +0000 (15:28 +0530)]
Adding test file for proximity sensor

Adding test file for proximity sensor along with updated spec and cmake files.

Change-Id: Iac16a6b09ae37e7d314c1092dd4411c7dfafbdab

10 years agoFixing compiler issues during virtual sensor builds 33/27933/1
Ramasamy [Tue, 23 Sep 2014 08:55:20 +0000 (14:25 +0530)]
Fixing compiler issues during virtual sensor builds

 - Fixed compiler issues when multiple virtual sensors are enabled
which are using the same source directories
 - Fixed compiler issue related to cleanup of orientation sensor
workaround code used for geo-magnetic sensor.

Change-Id: Ibbe6519d3b2b34d9796e52c5d856c7764593b7fd

10 years agoUpdating test suite build files 71/27871/1
Ramasamy [Mon, 22 Sep 2014 07:37:29 +0000 (13:07 +0530)]
Updating test suite build files

Updated the test suite CMakelist and spec file based on manual
merge of contents from other contributors.

Change-Id: I66b1b44c8c474536f7959b9df086c68811f61dfc

10 years agoAdding consolidated build files after merge 68/27868/1
Ramasamy [Mon, 22 Sep 2014 06:34:23 +0000 (12:04 +0530)]
Adding consolidated build files after merge

Merged the packaging/sensord.spec and src/CMakelists.txt from all
contributors and submitting. These files were causing conflicts
during merge.

Change-Id: I5ba565111efc112ae3571f9d0ffd7912afde5891

10 years agoAdding test file for gyroscope sensor 60/27260/5
Vibhor Gaur [Tue, 9 Sep 2014 09:32:00 +0000 (15:02 +0530)]
Adding test file for gyroscope sensor

Adding test file for gyroscope sensor along with updated spec and cmake files.

Change-Id: Ifa49cb26f64d6f19b1322a4dcbde633a90bdcf9c

10 years agoAdding test file for linear accleration virtual sensor 98/27198/7
Ramasamy [Mon, 8 Sep 2014 03:59:11 +0000 (09:29 +0530)]
Adding test file for linear accleration virtual sensor

Adding test file for linear acceleration virtual sensor along with
updated spec and cmake files.

Change-Id: I1074ee8a5f1bb4afa4da3c453453dc590a9ee77e

10 years agoAdding test file for gravity virtual sensor 97/27197/7
Ramasamy [Mon, 8 Sep 2014 03:43:27 +0000 (09:13 +0530)]
Adding test file for gravity virtual sensor

Adding test file for gravity virtual sensor along with updated
spec and cmake files.

Change-Id: Ibaf44bcd6ecfe258d16e07840a71aa0d0e92f0d8

10 years agoAdding test file for orientation virtual sensor 69/27169/6
Ramasamy [Fri, 5 Sep 2014 12:05:07 +0000 (17:35 +0530)]
Adding test file for orientation virtual sensor

Adding test file for orientation virtual sensor along with updated
spec and cmake files.

Change-Id: I2564855f8f0560ccb0119d07ebacaeabf997fa3d

10 years agoAdding test file for geomagnetic sensor 68/27168/6
Ramasamy [Fri, 5 Sep 2014 11:30:27 +0000 (17:00 +0530)]
Adding test file for geomagnetic sensor

Adding geomagnetic sensor test file and updated spec and cmake files

Change-Id: I36b9dbde69fe335b08927db269ad9db0b0aae9fc

10 years agoMerge "Adding pressure sensor plugin code modified for compatibility with IIO driver...
Kibak Yoon [Mon, 22 Sep 2014 04:55:27 +0000 (21:55 -0700)]
Merge "Adding pressure sensor plugin  code modified for compatibility with IIO driver interface." into tizen

10 years agoLight sensor HAL plugin has been modified for IIO driver interface 39/27639/4
Amit Dharmapurikar [Wed, 17 Sep 2014 05:43:23 +0000 (11:13 +0530)]
Light sensor HAL plugin has been modified for IIO driver interface

   -As there is no char dev event source for light sensor, raw sysfs nodes are used to read light level
   -To maintain compatibility with present sensor framework code, only clear value is used.
   -Enable/disable functions and timestamp for the events are not available.

Change-Id: Ie05bdd212251baf236c71e2c8e78cfe981707b80
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoAdding pressure sensor plugin code modified for compatibility with IIO driver interface. 63/26663/4
Amit Dharmapurikar [Wed, 27 Aug 2014 11:28:11 +0000 (16:58 +0530)]
Adding pressure sensor plugin  code modified for compatibility with IIO driver interface.

- Added pressure sensor plugin code and necessary header file
- Modified the packaging file and CMakeLists files for newly added files
- Added LPS331 pressure sensor data in sensors.xml.in

Change-Id: I7fb52e282f26a68d4e1d9d8d563f2b8dcfc08bfd
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoMerge "Adding AK8975 geo-sensor info in sensors.xml.in required by geo-plugin" into...
Kibak Yoon [Mon, 22 Sep 2014 04:37:23 +0000 (21:37 -0700)]
Merge "Adding AK8975 geo-sensor info in sensors.xml.in required by geo-plugin" into tizen

10 years agoMerge changes Ie30889de,Ice0c3d62,Idf41e9fb,I72655e6d,I5c99630e,I89aaf134,Idafc607f...
Kibak Yoon [Mon, 22 Sep 2014 04:34:01 +0000 (21:34 -0700)]
Merge changes Ie30889de,Ice0c3d62,Idf41e9fb,I72655e6d,I5c99630e,I89aaf134,Idafc607f,Id2d530ce into tizen

* changes:
  Updating orientation virtual sensor based on RD-PQ testing
  Updating orientation_filter test file
  Updating orientation_filter based on RD-PQ testing
  Updating SF linear_accel_sensor using sensor fusion
  Implementing SF gravity_sensor using sensor fusion
  Implementing SF orientation_sensor using software sensor fusion
  Updating SF files for software based sensor fusion support
  Supporting Virtual Sensor data based only on event types

10 years agoMerge "Removing unutilized compute_gravity class" into tizen
Kibak Yoon [Mon, 22 Sep 2014 04:33:43 +0000 (21:33 -0700)]
Merge "Removing unutilized compute_gravity class" into tizen

10 years agoAdding test automation suite for sensord 98/26898/21
Vibhor Gaur [Mon, 1 Sep 2014 05:19:09 +0000 (10:49 +0530)]
Adding test automation suite for sensord

1.Adding seperate test case folder for sensord along with necessary make files and updated spec file.
2.Test suite is disabled by default by setting build_test_suite to OFF in the spec file in the packaging folder.Test suite can be enabled by setting build_test_suite ON.

Change-Id: I6e46febc7011f3faf18e216f4dfc327648fd91d5

10 years agoMerge "Updating octave design files" into tizen
Kibak Yoon [Mon, 22 Sep 2014 04:23:47 +0000 (21:23 -0700)]
Merge "Updating octave design files" into tizen

10 years agoUpdating octave design files 03/27503/3
Ramasamy [Mon, 15 Sep 2014 05:51:20 +0000 (11:21 +0530)]
Updating octave design files

 - Updating octave design files based on testing of RD-PQ target data.
 - Adding customization data for when code is being ported to multiple
   devices.

Change-Id: I7c6b352102c3686a6b90f10103b668d2852c262a

10 years agoUpdating orientation virtual sensor based on RD-PQ testing 22/27822/4
Ramasamy [Fri, 19 Sep 2014 11:24:59 +0000 (16:54 +0530)]
Updating orientation virtual sensor based on RD-PQ testing

Orientation virtual sensor tested on RD_PQ device based on workaround
on top of the code being submitted here. Workaround involves enabling
accelerometer events for 100ms and then everytime accel event is
received the gyroscope and geomagnetic sensor events are polled and
provided as input to the orientation filter class which computes the
orientation.

Change-Id: Ie30889de3f380422a052d2ba9455586a64ccb640

10 years agoUpdating orientation_filter test file 16/27816/2
Ramasamy [Fri, 19 Sep 2014 10:53:54 +0000 (16:23 +0530)]
Updating orientation_filter test file

Updating orientation_filter test file based on changes made on the
orientation filter class and implementation after RD-PQ testing.

Change-Id: Ice0c3d62bc4a67539fed4890583928566087d035

10 years agoUpdating orientation_filter based on RD-PQ testing 13/27813/2
Ramasamy [Fri, 19 Sep 2014 10:24:24 +0000 (15:54 +0530)]
Updating orientation_filter based on RD-PQ testing

 - Updating orientation filter code based on testing on RD-PQ target
 - Updating orientation_filter class based on configuration to be
   received from user inputs.
 - Updating orientation_sensor test class and code.

Change-Id: Idf41e9fb6ff8ad9d76a40bf0a4e7f17c70d4a7fa

10 years agoUpdating SF linear_accel_sensor using sensor fusion 75/26575/3
Ramasamy [Tue, 26 Aug 2014 11:22:23 +0000 (16:52 +0530)]
Updating SF linear_accel_sensor using sensor fusion

 - Updating linear_accel_sensor code using software sensor fusion to
   sensor framework
 - Currently code is not added as part of the default build for
   sensord as this has to be tested and debugged once magnetometer
   plugin code is merged

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I72655e6dd10fcaa01d757a16ab7d14faae4b5aaa

10 years agoImplementing SF gravity_sensor using sensor fusion 74/26574/3
Ramasamy [Tue, 26 Aug 2014 11:14:04 +0000 (16:44 +0530)]
Implementing SF gravity_sensor using sensor fusion

 - Updating gravity_sensor code using software sensor fusion to
   sensor framework
 - Adding CMakelist file for gravity_sensor
 - Currently code is not added as part of the default build for
   sensord as this has to be tested and debugged once magnetometer
   plugin code is merged

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I5c99630ebd1729c9a42cef55ff99851e568de468

10 years agoImplementing SF orientation_sensor using software sensor fusion 73/26573/5
Ramasamy [Tue, 26 Aug 2014 10:56:17 +0000 (16:26 +0530)]
Implementing SF orientation_sensor using software sensor fusion

 - Adding orientation_sensor code using software sensor fusion to
   sensor framework
 - Adding CMakelist file for orientation_sensor
 - Currently code is not added as part of the default build for
   sensord as this has to be tested and debugged once magnetometer
   plugin code is merged

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I89aaf1346674e62130329a5965ba3158fffbd74a

10 years agoUpdating SF files for software based sensor fusion support 72/26572/3
Ramasamy [Tue, 26 Aug 2014 10:16:29 +0000 (15:46 +0530)]
Updating SF files for software based sensor fusion support

 - Adding get_sensor_data method to virtual sensor for polling support
 - Cleanup of CMakelist to remove compute_gravity class
 - Updating CMakelist for supporting sensor fusion based virtual
   sensors

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Idafc607f4c1cf81495294415fcb5519a1e89973c

10 years agoSupporting Virtual Sensor data based only on event types 68/26568/4
Ramasamy [Tue, 26 Aug 2014 09:59:56 +0000 (15:29 +0530)]
Supporting Virtual Sensor data based only on event types

 - Sensor data representation based only on sensor event types
 - removing redundant representation for sensor data using data id

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Id2d530cede56ec4133b9db152f94a84a6c36d8e5

10 years agoRemoving unutilized compute_gravity class 66/26566/3
Ramasamy [Tue, 26 Aug 2014 05:39:40 +0000 (11:09 +0530)]
Removing unutilized compute_gravity class

 - compute_gravity class will be removed because it is not going
   going to be used during sensor framework porting.
 - standalone test code gravity_sensor class and linear_acceleration
   class are updated based on this.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ia4b7f41bf22b046b53e177f1b2751923337200f3

10 years agoRemoving sensor_fusion abstract class and references 13/26313/4
Ramasamy [Wed, 20 Aug 2014 12:00:40 +0000 (17:30 +0530)]
Removing sensor_fusion abstract class and references

 - Removing all references to the sensor type sensor_fusion
 - All software based sensors will fall under virtual_sensor type
 - Having two software sensor implementions under virtual_sensor and
   sensor_fusion types are avoided.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I1f15591084955df9a549910093c1f417a15ee61f

10 years agoMerge "Adding IIO event related data structures for non-trigger based IIO drivers...
Kibak Yoon [Mon, 22 Sep 2014 01:34:12 +0000 (18:34 -0700)]
Merge "Adding IIO event related data structures for non-trigger based IIO drivers" into tizen

10 years agoMerge "Modified proxi_sensor_hal plugin for IIO driver compatibility" into tizen
Kibak Yoon [Mon, 22 Sep 2014 01:34:01 +0000 (18:34 -0700)]
Merge "Modified proxi_sensor_hal plugin for IIO driver compatibility" into tizen

10 years agoMerge "Changing all 'Vector' Class references to 'vect'" into tizen
Kibak Yoon [Mon, 22 Sep 2014 01:26:51 +0000 (18:26 -0700)]
Merge "Changing all 'Vector' Class references to 'vect'" into tizen

10 years agoMerge "Restructuring of sensor fusion files and directory" into tizen
Kibak Yoon [Mon, 22 Sep 2014 01:26:38 +0000 (18:26 -0700)]
Merge "Restructuring of sensor fusion files and directory" into tizen

10 years agoAdding AK8975 geo-sensor info in sensors.xml.in required by geo-plugin 78/27278/1
Amit Dharmapurikar [Wed, 10 Sep 2014 05:14:02 +0000 (10:44 +0530)]
Adding AK8975 geo-sensor info in sensors.xml.in required by geo-plugin

Change-Id: I19f314eadbdb377e12305153a96d266b0625872f
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoAdding IIO event related data structures for non-trigger based IIO drivers 46/25346/3
Amit Dharmapurikar [Mon, 4 Aug 2014 06:50:04 +0000 (12:20 +0530)]
Adding IIO event related data structures for non-trigger based IIO drivers

  IIO event data structure and other event decoding data types have been defined for sensor drivers without IIO trigger.

Change-Id: I38e6d78ee907f47f3544fdacfcffc41d7e5d1ae6
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoModified proxi_sensor_hal plugin for IIO driver compatibility 45/25345/2
Amit Dharmapurikar [Mon, 4 Aug 2014 08:05:55 +0000 (13:35 +0530)]
Modified proxi_sensor_hal plugin for IIO driver compatibility

    - The proxi_sensor_hal plugin is modified as per proximity IIO driver interface
    - The proxi sensor is enabled in the sensord.spec file

Change-Id: I87256d7e96174003af7c2d04ac1fde7e33c26116
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoChanging all 'Vector' Class references to 'vect' 29/26029/1
Ramasamy [Thu, 14 Aug 2014 09:19:38 +0000 (14:49 +0530)]
Changing all 'Vector' Class references to 'vect'

Changing all class name references 'Vector' to 'vect' as std library
already has definition for 'Vector' and causes compiler errors.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Idec973fb771e60ef5675e6759de7a83f4f18807f

10 years agoModified geo_sensor_hal plugin for IIO driver compatibility 22/25922/2
Amit Dharmapurikar [Tue, 12 Aug 2014 12:19:16 +0000 (17:49 +0530)]
Modified geo_sensor_hal plugin for IIO driver compatibility

    - The geo_sensor_hal plugin is modified as per present geo sensor IIO driver interface.
       * the plugin reads data from raw data files instead of char-dev file in /dev/ directory,
       * time stamp for data samples is not available
       * enable and disable actions for geo sensor are not available.

    - The geo sensor is enabled in the sensord.spec file

Change-Id: I8a02be99c37bae3e37f36fa4291810410fcc3976
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoRestructuring of sensor fusion files and directory 90/25490/1
Ramasamy [Wed, 6 Aug 2014 03:32:49 +0000 (09:02 +0530)]
Restructuring of sensor fusion files and directory

 - restructured sensor fusion files and directory to enable
   standalone code testing and for code to support streaming
   sensor data.
 - removed lib-sensor-fusion files as sensor fusion alone
   will not constitute a virtual sensor.
 - virtual sensors would be orientation, gravity and linear
   acceleration which will use software sensor fusion
   solution.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Id0c979fb771e60ef5675e6759de7a83f4f18807f

10 years agoAdding linear_acceleration_sensor class 45/24945/3
Ramasamy [Thu, 24 Jul 2014 08:36:58 +0000 (14:06 +0530)]
Adding linear_acceleration_sensor class

 - Adding class definition and implementation for linear acceleration
   virtual sensor
 - Adding test code for linear_acceleration_sensor class
 - interface to sensor framework for virtual class will be added
   during porting

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Id0c979fb771e60cd5675e6759de7a83f4f18807f

10 years agoAdding gravity_sensor virtual sensor class 44/24944/4
Ramasamy [Thu, 24 Jul 2014 08:31:44 +0000 (14:01 +0530)]
Adding gravity_sensor virtual sensor class

 - Adding class definition and implementation for gravity virtual
   sensor
 - Adding test code for gravity_sensor class
 - interface to sensor framework for virtual class will be added
   during porting

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I6756922fb4d66bfab491715bac8e93b4cfbef88b

10 years agoAdding orientation_sensor virtual sensor class 41/24941/3
Ramasamy [Thu, 24 Jul 2014 08:27:04 +0000 (13:57 +0530)]
Adding orientation_sensor virtual sensor class

 - Adding class definition and implementation for orientation virtual
   sensor
 - Adding test code for orientation_sensor class
 - interface to sensor framework for virtual class will be added
   during porting

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I17becdbe159345c446e6944596900db4557d51ba

10 years agoUpdating orientation_filter class 39/24939/2
Ramasamy [Thu, 24 Jul 2014 08:20:03 +0000 (13:50 +0530)]
Updating orientation_filter class

- Updating orientation_filter class to output rotation matrix

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I85cf21232bbf466f8ab52e4a0a5d8a4786e0ca29

10 years agoAdding compute_gravity class and implementation 62/24462/2
Ramasamy [Tue, 15 Jul 2014 04:57:45 +0000 (10:27 +0530)]
Adding compute_gravity class and implementation

 - Adding class definition and implementation of compute_gravity class
 - Adding testing code for compute_gravity class

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I4150961ddef0f6a7a9c10a369e0355b9615a9e58

10 years agoAdding orientation_filter class implementation 18/24418/3
Ramasamy [Fri, 11 Jul 2014 08:08:33 +0000 (13:38 +0530)]
Adding orientation_filter class implementation

 - complete implementation of the orientation filter class
 - test application for the orientation filter class

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Iee7c01fe8d4dcc2a1f7f71f6f0fb424a2000d989

10 years agoUpdated rotation matrix class method rot_mat2quat 99/24299/2
Ramasamy [Thu, 10 Jul 2014 07:49:35 +0000 (13:19 +0530)]
Updated rotation matrix class method rot_mat2quat

Updated method with better implementation for rotation matrix to
quaternion conversion. The best method for this conversion is based
on eigen vectors. This complex implementation will be added at a
later stage after further analysis.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I9fe29d4f8e5ff3b5989a90ecba691d38adc9f3a8

10 years agoUpdating matrix and vector class functionality 17/24217/3
Ramasamy [Wed, 9 Jul 2014 04:31:40 +0000 (10:01 +0530)]
Updating matrix and vector class functionality

 - Adding multiplication method for matrix class
 - Adding transpose method for vector class

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I24fc52221e3d10bebf9016e944d38e3ffd314b2a

10 years agoUpdating vector and quaternion class 62/23862/3
Ramasamy [Fri, 4 Jul 2014 05:39:29 +0000 (11:09 +0530)]
Updating vector and quaternion class

Vector Class

 - Adding method to update vector like a queue
 - Adding method to compute variance of vector
 - Adding method to check if vector is initialized

Quaternion Class

 - Updated the quaternion normalization method

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I08d7fcb6c62b1fc02c53954009d13127b73e65c3

10 years agoMerge "Modified gyro_sensor_hal plugin for IIO driver compatibility" into tizen
Geunsik Lim [Sun, 27 Jul 2014 23:45:31 +0000 (16:45 -0700)]
Merge "Modified gyro_sensor_hal plugin for IIO driver compatibility" into tizen

10 years agoMerge changes I25b78b13,I9417c85f,I9417c85f into tizen
Geunsik Lim [Sun, 27 Jul 2014 23:45:03 +0000 (16:45 -0700)]
Merge changes I25b78b13,I9417c85f,I9417c85f into tizen

* changes:
  updating orientation_filter class
  Fix for zero initialization of vector & matrix
  Updating vector class, cleanup & rebasing

10 years agoMerge changes I9417c85f,I19e28b00 into tizen
Geunsik Lim [Sun, 27 Jul 2014 23:43:19 +0000 (16:43 -0700)]
Merge changes I9417c85f,I19e28b00 into tizen

* changes:
  Adding orientation_filter class definition
  Adding timestamp info to sensor_data class

10 years agoModified gyro_sensor_hal plugin for IIO driver compatibility 20/23720/2
Amit Dharmapurikar [Wed, 2 Jul 2014 07:04:57 +0000 (12:34 +0530)]
Modified gyro_sensor_hal plugin for IIO driver compatibility

- The gyro_sensor_hal plugin is modified as per gyroscope IIO driver interface
- The gyro sensor is enabled in the sensord.spec file

Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
Change-Id: I1d62cece29b0305cea76d984dfbb03b84a36c40c

10 years agoupdating orientation_filter class 94/23794/1
Ramasamy [Thu, 3 Jul 2014 06:13:09 +0000 (11:43 +0530)]
updating orientation_filter class

 - updated orientation_filter class code
 - updated sensor_data class code

code contributions from Gurleen Kaur

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I25b78b130cbaa1ecb75aaf2b3543e940cfb8d0f4

10 years agoFix for zero initialization of vector & matrix 46/23746/2
Ramasamy [Wed, 2 Jul 2014 10:03:11 +0000 (15:33 +0530)]
Fix for zero initialization of vector & matrix

 - fix for initializing vector and matrix object memory to 0
 - updated the testing code

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I9417c85f7e5ff56e592772afee7b1e6f4fc1abe2

10 years agoUpdating vector class, cleanup & rebasing 37/23737/2
Ramasamy [Wed, 2 Jul 2014 08:31:31 +0000 (14:01 +0530)]
Updating vector class, cleanup & rebasing

  - updating the vector class
  - clean up of project files
  - rebasing folder to code updates on previous commits

  method for cross produect provided by Gurleen Kaur

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I9417c85f7e5b656e592772afee7b1e6f4fc1abe2

10 years agoAdding orientation_filter class definition 62/23462/5
Ramasamy [Thu, 26 Jun 2014 06:33:11 +0000 (12:03 +0530)]
Adding orientation_filter class definition

  - adding orientation_filter source files with definitions
  - adding test application to read sensor data from sample data files

  Gurleen Kaur will help with implementation and testing of the class

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I9417c85f7e5b656e592772afee7b1e6f4fc1aba9

10 years agoAdding timestamp info to sensor_data class 58/23458/3
Ramasamy [Thu, 26 Jun 2014 05:34:42 +0000 (11:04 +0530)]
Adding timestamp info to sensor_data class

 - Adding new variable for time stamp info for received sensor data

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I19e28b0021eb836cea28fcb9c56e44fa31589d28

10 years agoFixing a typo error in gyro_sensor.cpp 14/23714/2
Amit Dharmapurikar [Wed, 2 Jul 2014 04:59:17 +0000 (10:29 +0530)]
Fixing a typo error in gyro_sensor.cpp

The typo error causes build failure when gyroscope plugins are enabled.

Change-Id: I3107bd7985ee4b022a08b0d1e461052dc7be5310
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoMerge "Adding rotation matrix class implementation" into tizen
MyungJoo Ham [Mon, 30 Jun 2014 08:25:50 +0000 (01:25 -0700)]
Merge "Adding rotation matrix class implementation" into tizen

10 years agoMerge "Fix related return values of assignment operators" into tizen
MyungJoo Ham [Mon, 30 Jun 2014 08:18:55 +0000 (01:18 -0700)]
Merge "Fix related return values of assignment operators" into tizen

10 years agoAdding rotation matrix class implementation 77/23377/2
Ramasamy [Tue, 24 Jun 2014 11:49:47 +0000 (17:19 +0530)]
Adding rotation matrix class implementation

  - Adding rotation_matrix template class
  - Adding implementation for the rotation_matrix template class
  - Adding rotation_matrix class testing code

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ife6b6cefd6fa2801d037d6607c7518cc31dfb6b7

10 years agoFix related return values of assignment operators 36/23336/2
Ramasamy [Tue, 24 Jun 2014 03:33:01 +0000 (09:03 +0530)]
Fix related return values of assignment operators

 - Added return value for assignment operators that was missing
 - Cleanup of code

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I584a56146c371ec2d398899f3a96f3101153e756

10 years agoMerge "Adding sensor_data class implementation" into tizen
MyungJoo Ham [Fri, 27 Jun 2014 10:21:38 +0000 (03:21 -0700)]
Merge "Adding sensor_data class implementation" into tizen

10 years agoMerge "Modified accel_sensor_hal as per IIO driver interface" into tizen
MyungJoo Ham [Fri, 27 Jun 2014 10:19:40 +0000 (03:19 -0700)]
Merge "Modified accel_sensor_hal as per IIO driver interface" into tizen

10 years agoAdding sensor_data class implementation 86/23286/1
Ramasamy [Mon, 23 Jun 2014 05:45:55 +0000 (11:15 +0530)]
Adding sensor_data class implementation

  - Adding sensor_data template class
  - Adding implementation for the sensor_data template class
  - Adding sensor_data class testing code

  - Testing application contributed by Gurleen Kaur

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I96ff03a716b562d0c006bbe95b054936f5b90775

10 years agoAdding euler_angles class implementation 94/23194/1
Ramasamy [Thu, 19 Jun 2014 10:01:58 +0000 (15:31 +0530)]
Adding euler_angles class implementation

  - Adding euler_angles template class
  - Adding implementation for the euler_angles template class
  - Adding euler_angles class testing code

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Idd8498ce0decf89d0ae53cf2efa424013d692c86

10 years agoAdding quaternion class implementation 91/23191/4
Ramasamy [Thu, 19 Jun 2014 08:09:00 +0000 (13:39 +0530)]
Adding quaternion class implementation

  - Adding quaternion template class
  - Adding implementation for the quaternion template class
  - Adding quaternion class testing code

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ia200184bf5ac5ada93e829d422a32bae8314fd63

10 years agoAdding implementation for Vector Class 52/23152/1
Ramasamy [Wed, 18 Jun 2014 11:58:42 +0000 (17:28 +0530)]
Adding implementation for Vector Class

  - Adding implementation for the Vector template class
  - Adding vector class testing code

Code Contributed by : Gurleen Kaur

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ie4e006b0a40d4d41c2f3762b3fdb081cdcc41180

10 years agoAdding matrix class implementation 33/23033/5
Ramasamy [Mon, 16 Jun 2014 09:54:07 +0000 (15:24 +0530)]
Adding matrix class implementation

- Adding matrix template class implementation
- Adding matrix class testing code

Code Contributed by : Gurleen Kaur

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Iadee665910db4e7d53ca55eabf2744cc81ec747e

10 years agoAdding vector template class 53/22553/11
Ramasamy [Thu, 12 Jun 2014 06:15:32 +0000 (11:45 +0530)]
Adding vector template class

- Adding vector template class definition

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ia750b33d5a5b852adfd31fe4ed965c5d9ca070ed

10 years agoModified accel_sensor_hal as per IIO driver interface 20/22420/2
Amit Dharmapurikar [Tue, 3 Jun 2014 08:44:50 +0000 (14:14 +0530)]
Modified accel_sensor_hal as per IIO driver interface

The accel_sensor_hal has been modified as per IIO driver interface for Tizen 3.0.
The plugin uses IIO common library for IIO interface related functionality.

Change-Id: I732839161619e61f17aa4b1836853ad101860804
Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
10 years agoMerge "Adding template matrix class" into tizen
MyungJoo Ham [Thu, 12 Jun 2014 07:33:16 +0000 (00:33 -0700)]
Merge "Adding template matrix class" into tizen

10 years agoAdding template matrix class 33/22533/9
Ramasamy [Thu, 5 Jun 2014 11:54:52 +0000 (17:24 +0530)]
Adding template matrix class

- Adding standalone directory for sensor fusion standalone C/C++
  library
- Adding matrix template class definition.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I55e4244338a33ad89272600bdcfad2605dff4af1

10 years agoMerge "Adding iio_common utility library to be used by sensor plugins" into tizen
MyungJoo Ham [Thu, 12 Jun 2014 03:51:34 +0000 (20:51 -0700)]
Merge "Adding iio_common utility library to be used by sensor plugins" into tizen

10 years agoAdding iio_common utility library to be used by sensor plugins 02/20702/4
Amit Dharmapurikar [Mon, 12 May 2014 06:44:13 +0000 (12:14 +0530)]
Adding iio_common utility library to be used by sensor plugins

The iio_common utility provides common iio interface functions.

Signed-off-by: Amit Dharmapurikar <amit.vd@samsung.com>
Change-Id: Iba582400e9668add099b629b338855b1e30e8786

10 years agoAdding info for gravity and linear acceleration 20/20920/1
Ramasamy [Wed, 14 May 2014 03:29:14 +0000 (08:59 +0530)]
Adding info for gravity and linear acceleration

Updated information on gravity and linear acceleration virtual sensors
design.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I94b0d47d4f51eb8b8eb07eec749d8080d92a2529

10 years agoAdding initial documentation for Sensor Fusion 71/20871/3
Ramasamy [Tue, 13 May 2014 09:51:51 +0000 (15:21 +0530)]
Adding initial documentation for Sensor Fusion

- Adding initial version of sensor fusion document in html format
- Added already available information for Orientation Estimation from
  design document

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I35d164d765b8a63a993a7887ab088335eaeb9be3

10 years agoAdding results for virtual sensors implementations 59/20559/1
Ramasamy [Fri, 9 May 2014 07:34:16 +0000 (13:04 +0530)]
Adding results for virtual sensors implementations

- adding simulation result plots for orientation, gravity and linear
  acceleration estimation
- corrected octave code for displaying accelerometer plot title in
  sf_gravity.m file

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ib5f4694660d1f50c0b823c8b9daa44c5f624a059

10 years agoAdding linear acceleration virtual sensor 01/20501/2
Ramasamy [Thu, 8 May 2014 09:21:36 +0000 (14:51 +0530)]
Adding linear acceleration virtual sensor

- adding octave code for computing linear acceleration.
- adding sensor data to test linear acceleration.
- fixing sign in gravity computation to correct phase.

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: I86356a58ed27f013693f28234d29fa1922da2323

10 years agoAdding Gravity virtual sensor 77/20377/4
root [Tue, 6 May 2014 06:21:19 +0000 (11:51 +0530)]
Adding Gravity virtual sensor

- adding octave code to measure gravitational force on device reference axes
- adding sensor test data to test gravity virtual sensor

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Ia1ff380f04145722432467d4f2e8b4fd94e0bfa3