Updated sensor framework common files for RV sensor 05/33005/1
authorRamasamy <ram.kannan@samsung.com>
Fri, 2 Jan 2015 06:01:45 +0000 (11:31 +0530)
committerRamasamy <ram.kannan@samsung.com>
Fri, 2 Jan 2015 06:02:44 +0000 (11:32 +0530)
- Updated sensor_common.h file for RV sensor
- Updated client_common.cpp file for RV sensor

Change-Id: I8c246a45b5ea99a4ae46837115842b3fe1240d40

src/libsensord/client_common.cpp
src/shared/sensor_common.h

index 24932bb..dcf85d4 100755 (executable)
@@ -39,6 +39,7 @@ log_element g_log_elements[] = {
        FILL_LOG_ELEMENT(LOG_ID_SENSOR_TYPE, LINEAR_ACCEL_SENSOR, 0, 1),
        FILL_LOG_ELEMENT(LOG_ID_SENSOR_TYPE, ORIENTATION_SENSOR, 0, 1),
        FILL_LOG_ELEMENT(LOG_ID_SENSOR_TYPE, TEMPERATURE_SENSOR, 0, 1),
+       FILL_LOG_ELEMENT(LOG_ID_SENSOR_TYPE, ROTATION_VECTOR_SENSOR, 0, 1),
 
        FILL_LOG_ELEMENT(LOG_ID_EVENT, GEOMAGNETIC_EVENT_CALIBRATION_NEEDED, 0, 1),
        FILL_LOG_ELEMENT(LOG_ID_EVENT, PROXIMITY_EVENT_CHANGE_STATE, 0,1),
@@ -59,6 +60,7 @@ log_element g_log_elements[] = {
        FILL_LOG_ELEMENT(LOG_ID_EVENT, ORIENTATION_EVENT_RAW_DATA_REPORT_ON_TIME, 0, 10),
        FILL_LOG_ELEMENT(LOG_ID_EVENT, PRESSURE_EVENT_RAW_DATA_REPORT_ON_TIME, 0, 10),
        FILL_LOG_ELEMENT(LOG_ID_EVENT, TEMPERATURE_EVENT_RAW_DATA_REPORT_ON_TIME, 0, 10),
+       FILL_LOG_ELEMENT(LOG_ID_EVENT, ROTATION_VECTOR_EVENT_RAW_DATA_REPORT_ON_TIME, 0, 10),
 
        FILL_LOG_ELEMENT(LOG_ID_DATA, ACCELEROMETER_BASE_DATA_SET, 0, 25),
        FILL_LOG_ELEMENT(LOG_ID_DATA, GYRO_BASE_DATA_SET, 0, 25),
@@ -74,6 +76,7 @@ log_element g_log_elements[] = {
        FILL_LOG_ELEMENT(LOG_ID_DATA, ORIENTATION_BASE_DATA_SET, 0, 25),
        FILL_LOG_ELEMENT(LOG_ID_DATA, PRESSURE_BASE_DATA_SET, 0, 25),
        FILL_LOG_ELEMENT(LOG_ID_DATA, TEMPERATURE_BASE_DATA_SET, 0, 25),
+       FILL_LOG_ELEMENT(LOG_ID_DATA, ROTATION_VECTOR_BASE_DATA_SET, 0, 25),
 };
 
 typedef unordered_map<unsigned int, log_attr* > log_map;
index c819197..cfecead 100755 (executable)
@@ -55,7 +55,8 @@ typedef enum {
        GRAVITY_SENSOR,
        LINEAR_ACCEL_SENSOR,
        ORIENTATION_SENSOR,
-       TEMPERATURE_SENSOR
+       TEMPERATURE_SENSOR,
+       ROTATION_VECTOR_SENSOR
 } sensor_type_t;
 
 typedef unsigned int sensor_id_t;