Updating the get_properties method 83/30683/1
authorRamasamy <ram.kannan@samsung.com>
Mon, 24 Nov 2014 08:09:01 +0000 (13:39 +0530)
committerRamasamy <ram.kannan@samsung.com>
Mon, 24 Nov 2014 08:10:24 +0000 (13:40 +0530)
- Updating get_properties method for gravity and linear
acceleration

Change-Id: I296dc7be45b201c55d151e7dac2e2b5325d5abc5

src/gravity/gravity_sensor.cpp
src/linear_accel/linear_accel_sensor.cpp

index 08b70c5..328cab8 100755 (executable)
@@ -205,7 +205,7 @@ bool gravity_sensor::get_properties(sensor_properties_t &properties)
 {
        properties.min_range = -GRAVITY;
        properties.max_range = GRAVITY;
-       properties.resolution = 1;
+       properties.resolution = 0.000001;;
        properties.vendor = m_vendor;
        properties.name = SENSOR_NAME;
 
index 794bef0..f975733 100755 (executable)
@@ -276,6 +276,9 @@ bool linear_accel_sensor::get_properties(sensor_properties_t &properties)
        m_gravity_sensor->get_properties(properties);
        properties.name = "Linear Acceleration Sensor";
        properties.vendor = m_vendor;
+       properties.min_range = - 2 * GRAVITY;
+       properties.max_range = 2 * GRAVITY;
+       properties.resolution = 0.000001;
 
        return true;
 }