platform/core/system/sensord.git
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 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 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

9 years agoAdding test case for rotation_vector sensor 12/33012/1
Ramasamy [Fri, 2 Jan 2015 08:39:39 +0000 (14:09 +0530)]
Adding test case for rotation_vector sensor

- Adding test case for rotation vector sensor
- updated spec and cmake files for new test case

Change-Id: I9fd81a5d05c07f2f3ed0be0b7165f8a11a782ab6

9 years agoAdding missing sensor_rv.h file 08/33008/1
Ramasamy [Fri, 2 Jan 2015 06:32:53 +0000 (12:02 +0530)]
Adding missing sensor_rv.h file

- Adding missing sensor_rv.h from local machine to repository to
avoid compiler errors.

Change-Id: I679ba00b31ca07a799ad0c8b4fc0b7753c02bb47

9 years agoUpdated sensor framework common files for RV sensor 05/33005/1
Ramasamy [Fri, 2 Jan 2015 06:01:45 +0000 (11:31 +0530)]
Updated sensor framework common files for RV sensor

- Updated sensor_common.h file for RV sensor
- Updated client_common.cpp file for RV sensor

Change-Id: I8c246a45b5ea99a4ae46837115842b3fe1240d40

9 years agoAdding Makelist support for virtual sensor configuration 03/33003/3
Ramasamy [Fri, 2 Jan 2015 05:16:09 +0000 (10:46 +0530)]
Adding Makelist support for virtual sensor configuration

- Added xml configuration support for CMakelist
- Updated spec file for virtual sensor xml

Change-Id: I8b9be20f0f3d4ae728a172237640454e4880de36

9 years agoAdding lock in virtual sensor layer for sensor fusion library 01/33001/1
Ramasamy [Fri, 2 Jan 2015 04:43:05 +0000 (10:13 +0530)]
Adding lock in virtual sensor layer for sensor fusion library

- Adding mutex lock in virtual sensor layer to restrict usage and
access to sensor fusion library.
- adding lock for event driven and polling based calls

Change-Id: I2202d046544de4d8474606179a516a5e38b77548

9 years agoUpdating virtual sensor xml configuration for multiple devices 00/33000/1
Ramasamy [Fri, 2 Jan 2015 04:23:28 +0000 (09:53 +0530)]
Updating virtual sensor xml configuration for multiple devices

- Updated virtual sensor xml configuration file to support
multiple devices and emulators
- Updated virtual sensor xml parser to support additional
functionality

Change-Id: I647958a6010e7ecebfc282ba72bf61ac6706d5cf

9 years agoAdding Rotation Vector virtual sensor 99/32999/2
Ramasamy [Fri, 2 Jan 2015 04:05:02 +0000 (09:35 +0530)]
Adding Rotation Vector virtual sensor

- Added 9-axis rotation vector based on sensor fusion
- Added xml configuration support for virtual sensor
- Added xml configuration for loading rotation vector library
- Updated build and spec files

Change-Id: I540b277019aa9a946e267b89c39a15e168dbe9f0

9 years agoUpdating linear acceleration range in get_properties 98/32998/1
Ramasamy [Fri, 2 Jan 2015 03:35:11 +0000 (09:05 +0530)]
Updating linear acceleration range in get_properties

- Updating the min_range and max_range values in get_properties to
to shown according to accelerometer range.
- cleanup

Change-Id: I2f2c68b8e29aad658d1cea1eed8ef7fc3bd0a2c4

9 years agoFix for orientation values being set to Nan 97/32997/1
Ramasamy [Fri, 2 Jan 2015 03:20:16 +0000 (08:50 +0530)]
Fix for orientation values being set to Nan

- Fixing issue where low floating point values are rounded of to
zero.
- indexing issue.
- Cleanup

Change-Id: Ief4a37395b50f8946bf1d622c0895a881c3a7619

9 years agoRemoved compiler warning - comparison between signed and unsigned integers 25/32825/1
Ankur [Wed, 24 Dec 2014 12:07:22 +0000 (17:37 +0530)]
Removed compiler warning - comparison between signed and unsigned integers

-The signed variables were positive the whole time. So, converted them from ssize_t to size_t

Change-Id: I743cd86f864ac22820951302679f2889e42e11b9

9 years agoRemoved compiler warning - pointer of type 'void *' used in arithmetic 24/32824/1
Ankur [Wed, 24 Dec 2014 12:04:20 +0000 (17:34 +0530)]
Removed compiler warning - pointer of type 'void *' used in arithmetic

-The void * pointer was being directly used in the calculation without type cast.
-Tested after change. Seems to work fine.

Change-Id: I483f946d870b3b5b1415139dbd0f442796b18059

9 years agoRemoved compiler warning - dereferencing type-punned pointer will break strict-aliasi... 21/32821/1
Ankur [Wed, 24 Dec 2014 12:01:20 +0000 (17:31 +0530)]
Removed compiler warning - dereferencing type-punned pointer will break strict-aliasing rules

-Tested the change. Works fine.

Change-Id: Ib2dfbd9fb67fe1c634df84ef833953db471fbd74

9 years agoRemoved compiler warning - Comparison between signed and unsigned integers 55/32755/1
Ankur [Tue, 23 Dec 2014 13:22:50 +0000 (18:52 +0530)]
Removed compiler warning - Comparison between signed and unsigned integers

-In client.cpp, the variable was an index for 'for' loop, and was always positive, so can be changed on unsigned.
-In sensor_plugin_loader.cpp, the variable was intialized with a variable which was unsigned int, and later was right shifted
which will remain positive, so can be changed to unsigned int

Change-Id: I9efeea4c4a90186378eefbe24f76eb945ae9a3db

9 years agoRemoved compiler warning - unsused variable 53/32753/1
Ankur [Tue, 23 Dec 2014 12:57:12 +0000 (18:27 +0530)]
Removed compiler warning - unsused variable

-Removed unused variable from the test file test/src/geomagnetic.c

Change-Id: I29bfb955c0ff715dfa9458c45d2a509a78ced99d

9 years agoRemoved warning - use of deprecated function 35/32735/2
Ankur [Tue, 23 Dec 2014 10:06:40 +0000 (15:36 +0530)]
Removed warning - use of deprecated function

-The function g_type_init() has been deprecated in glib from version 2.36. So no need to call this for version 2.36 and above.
-There is a macro for the glib version called - GLIB_VERSION_2_36 (2_36 can be replaced by the version number)
-So, used this macro to check if the glib version is old or new and based on that function call should be placed.

Change-Id: I291c32825ade29375b46df4ba2cef3a3fc13503e

9 years agoRemoved compiler warning - implicit declaration of a function 31/32731/1
Ankur [Tue, 23 Dec 2014 08:51:37 +0000 (14:21 +0530)]
Removed compiler warning - implicit declaration of a function

-Needed to include #include <string.h> before using the string functions.
-Already submitted a similar change.
-Some of the files here, which were showing warning, were already fixed.
But, seems some other change has removed the #include <string.h>. So, I am resubmitting it.
-Remaining files - earlier string functions were not being used.

Change-Id: I8d1c98de81ee39308343f42034c414501e60d653

9 years agoRemoved compiler warning - ignoring return value 30/32730/1
Ankur [Tue, 23 Dec 2014 07:08:48 +0000 (12:38 +0530)]
Removed compiler warning - ignoring return value

-Warning related to return value of asprintf() being ignored.
- asprintf returns -1 if failed. Added an if statement to check if the asprintf has failed or not.

Change-Id: I35a80554dd730e1722b975e488335910fd330d56

9 years agoMerge "Adding polling based support for testing proximity sensor" into tizen
Kibak Yoon [Mon, 22 Dec 2014 12:55:49 +0000 (04:55 -0800)]
Merge "Adding polling based support for testing proximity sensor" into tizen

9 years agoMerge "Adding polling based support for testing gyroscope sensor" into tizen
Kibak Yoon [Mon, 22 Dec 2014 12:49:27 +0000 (04:49 -0800)]
Merge "Adding polling based support for testing gyroscope sensor" into tizen

9 years agoMerge "Adding polling based support for testing of light sensor" into tizen
Kibak Yoon [Mon, 22 Dec 2014 12:49:15 +0000 (04:49 -0800)]
Merge "Adding polling based support for testing of light sensor" into tizen

9 years agoAdding polling based support for testing proximity sensor 70/32670/4
Vibhor Gaur [Mon, 22 Dec 2014 12:45:52 +0000 (18:15 +0530)]
Adding polling based support for testing proximity sensor

Change-Id: I0a5c82eb75a615348a348f56bf9254bc0d4f17c9

9 years agoAdding polling based support for testing of light sensor 49/32649/6
Vibhor Gaur [Mon, 22 Dec 2014 12:34:12 +0000 (18:04 +0530)]
Adding polling based support for testing of light sensor

Change-Id: Iab85d66ad648a2ecd5669938b448728ddfe898c7

9 years agoAdding polling based support for testing pressure sensor 18/32618/2
Vibhor Gaur [Mon, 22 Dec 2014 12:20:40 +0000 (17:50 +0530)]
Adding polling based support for testing pressure sensor

Change-Id:  I843b060db3f28a76cbac33c7deebb701055e8681

9 years agoAdding polling based support for testing gyroscope sensor 68/32368/4
Vibhor Gaur [Mon, 22 Dec 2014 12:09:15 +0000 (17:39 +0530)]
Adding polling based support for testing gyroscope sensor

Change-Id: Ibff596783a3d5c69f8fedc284df2f46cea144315

9 years agoMerge "Removed warnings related to unused variables" into tizen
Kibak Yoon [Mon, 22 Dec 2014 12:06:26 +0000 (04:06 -0800)]
Merge "Removed warnings related to unused variables" into tizen

9 years agoRemoved warnings related to unused variables 74/32674/1
Ankur [Mon, 22 Dec 2014 12:05:34 +0000 (17:35 +0530)]
Removed warnings related to unused variables

-Removed two unused variables. Both variables were never being intialised or being assigned or being used anywhere in the code.
The variables were just declared. Safe to remove such variables.

Change-Id: I998a1c0c2978d48150c1b15e9b0cc083e430c73a

9 years agoAdding polling based support for testing accelerometer 58/32358/7
Vibhor Gaur [Mon, 22 Dec 2014 11:58:25 +0000 (17:28 +0530)]
Adding polling based support for testing accelerometer

Change-Id: Id1a4343e8ad9ca44d9bb5a1027526ed50f88b6e2

9 years agoFixing 64 bit compiler issue for sensor_data class 46/32646/3
Ramasamy [Mon, 22 Dec 2014 05:39:57 +0000 (11:09 +0530)]
Fixing 64 bit compiler issue for sensor_data class

Removed constructor default initialization for timestamp in
sensor_data class.sensor_data class is used only in sensor
fusion scenario. Since Sensor Fusion requires that timestamp
is always initialized in virtual sensors, timestamp
initialization in sensor_data class can be removed.

Change-Id: Ic2b4e96f6c0bcdcab53697a5f681e914b5fea5f9

9 years agoMerge "Adding orientation filter to support quaternion output" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:38:08 +0000 (03:38 -0800)]
Merge "Adding orientation filter to support quaternion output" into tizen

9 years agoMerge "Removed compiler warning for converting bool 'false' to pointer 'void *'"...
Kibak Yoon [Mon, 22 Dec 2014 11:37:54 +0000 (03:37 -0800)]
Merge "Removed compiler warning for converting bool 'false' to pointer 'void *'" into tizen

9 years agoMerge "Adding polling based support for testing of temperature sensor" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:29:09 +0000 (03:29 -0800)]
Merge "Adding polling based support for testing of temperature sensor" into tizen

9 years agoMerge "Removed warnings related to comparison between signed and unsigned int" into...
Kibak Yoon [Mon, 22 Dec 2014 11:28:41 +0000 (03:28 -0800)]
Merge "Removed warnings related to comparison between signed and unsigned int" into tizen

9 years agoMerge "Removed compiler warnings related to unused variable" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:28:23 +0000 (03:28 -0800)]
Merge "Removed compiler warnings related to unused variable" into tizen

9 years agoMerge "Completed adding html documentation for sensor fusion" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:25:49 +0000 (03:25 -0800)]
Merge "Completed adding html documentation for sensor fusion" into tizen

9 years agoMerge "Adding description for Measurement update system" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:24:24 +0000 (03:24 -0800)]
Merge "Adding description for Measurement update system" into tizen

9 years agoMerge "Removed warnings related to unintialized variables" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:20:43 +0000 (03:20 -0800)]
Merge "Removed warnings related to unintialized variables" into tizen

9 years agoMerge "Added missing function call" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:20:26 +0000 (03:20 -0800)]
Merge "Added missing function call" into tizen

9 years agoMerge "Removed missing parantheses warning" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:20:12 +0000 (03:20 -0800)]
Merge "Removed missing parantheses warning" into tizen

9 years agoMerge "Fixed implicit declaration warnings" into tizen
Kibak Yoon [Mon, 22 Dec 2014 11:19:47 +0000 (03:19 -0800)]
Merge "Fixed implicit declaration warnings" into tizen

9 years agoRemoved compiler warning for converting bool 'false' to pointer 'void *' 71/32671/1
Ankur [Mon, 22 Dec 2014 11:07:30 +0000 (16:37 +0530)]
Removed compiler warning for converting bool 'false' to pointer 'void *'

-In the function sensor_get_sensor() in src/libsensord/client.cpp boolean 'false' was being converted to void *
This was showing as a warning at compile time. For returning failed cases, NULL should be returned.
The call to sensor_info_to_sensor in this function also returns NULL when failed.
-Tested the code after change. Seems to be working fine.

Change-Id: Id100370c9bc8b9f62c86acb6968f766b10370d7b

9 years agoAdding orientation filter to support quaternion output 63/32663/1
Ramasamy [Mon, 22 Dec 2014 10:16:46 +0000 (15:46 +0530)]
Adding orientation filter to support quaternion output

- orientation_filter would output device orientation as quaternion
to support rotation_vector virtual sensor.

Change-Id: I5e0cdcb1b218c59d32965deac76629f04c728899

9 years agoRemoved warnings related to comparison between signed and unsigned int 61/32661/1
Ankur [Mon, 22 Dec 2014 09:42:25 +0000 (15:12 +0530)]
Removed warnings related to comparison between signed and unsigned int

-converted int variables to unsinged int to remove warnings for comparison between signed and unsigned integers.

Change-Id: I3e0187d002b19b215a5d542d1206ba51ef663368

9 years agoAdding polling based support for testing of temperature sensor 58/32658/2
Vibhor Gaur [Mon, 22 Dec 2014 09:02:22 +0000 (14:32 +0530)]
Adding polling based support for testing of temperature sensor

Change-Id: I3ff0750bd160c3259062a4f91542b69947597b53

9 years agoRemoved compiler warnings related to unused variable 57/32657/1
Ankur [Mon, 22 Dec 2014 08:51:48 +0000 (14:21 +0530)]
Removed compiler warnings related to unused variable

-changed the variable (MS_TO_US) declaration to a macro as done in other files
this removes the warning in csensor_event_listener.cpp regarding unused variable.
-similarly, based on this, changed all occurrences of (MIN_DELIVERY_DIFF_FACTOR) from variable declaration to macro
this removes the warning in csensor_event_listener.cpp regarding unused variable.

Change-Id: I98708ed5eca0d84dd959d5a59ad865f5381c0b26

9 years agoCompleted adding html documentation for sensor fusion 41/32641/1
Ramasamy [Mon, 22 Dec 2014 03:57:20 +0000 (09:27 +0530)]
Completed adding html documentation for sensor fusion

Added all sections for sensor fusion html documentation.

Change-Id: Ibb50bad292c6056b6dd8d37b80ca0a8dda88ae74

9 years agoAdding description for Measurement update system 67/32567/3
Ramasamy [Fri, 19 Dec 2014 05:41:18 +0000 (11:11 +0530)]
Adding description for Measurement update system

Adding description for the sensor fusion measurement update system
in html documentation.

Change-Id: I7dc24f7940cfb8d607313fe9b3cd405abf1666e2

9 years agoMerge "Fixed Intialization Warnings" into tizen
Kibak Yoon [Fri, 19 Dec 2014 01:47:24 +0000 (17:47 -0800)]
Merge "Fixed Intialization Warnings" into tizen