OSDN Git Service

Modified supported sensor capabilities
authorSharada <sharadaX.palasamudram.ashok.kumar@intel.com>
Fri, 25 Jan 2013 22:55:18 +0000 (14:55 -0800)
committerMattias Pettersson <mattias.pettersson@intel.com>
Wed, 4 Dec 2013 14:13:12 +0000 (15:13 +0100)
Sensor info needs to be updated based on the device
capability.For ACER Iconia and HSW Kalapana beach
maximum supproted sampling frequency is ACCEL :60hz,
Gyro :60Hz, Compass:15Hz.
Anything set above this frequency, firmware will default
to 5Hz.

Issue: AXIA-1721, AXIA-1722

Signed-off-by: SharadaX Palasamudram Ashok Kumar<sharadax.p
alasamudram.ashok.kumar@intel.com>

Change-Id: Ic355d30d4fd614b15fcc45368bf439a9b12b6419

common/libsensors/HidSensor_Accel3D.cpp
common/libsensors/HidSensor_Compass3D.cpp
common/libsensors/HidSensor_Gyro3D.cpp

index e01a679..62a20f4 100644 (file)
@@ -38,7 +38,7 @@ struct accel_3d_sample{
 
 const struct sensor_t AccelSensor::sSensorInfo_accel3D = {
     "HID_SENSOR Accelerometer 3D", "Intel", 1, SENSORS_ACCELERATION_HANDLE,
-        SENSOR_TYPE_ACCELEROMETER, RANGE_A, RESOLUTION_A, 0.23f, 20000, {}
+        SENSOR_TYPE_ACCELEROMETER, RANGE_A, RESOLUTION_A, 0.23f, 16666, {}
 };
 
 const long HID_USAGE_SENSOR_UNITS_G = 0x1A;
index 981cecb..a7b7b86 100644 (file)
@@ -38,7 +38,7 @@ struct compass_3d_sample{
 
 const struct sensor_t CompassSensor::sSensorInfo_compass3D = {
     "HID_SENSOR Compass 3D", "Intel", 1, SENSORS_MAGNETIC_FIELD_HANDLE,
-        SENSOR_TYPE_MAGNETIC_FIELD, RANGE_M, RESOLUTION_M, 0.1f, 23000, {}
+        SENSOR_TYPE_MAGNETIC_FIELD, RANGE_M, RESOLUTION_M, 0.1f, 66667, {}
 };
 const int retry_cnt = 10;
 
index d9f2382..17d6f93 100644 (file)
@@ -38,7 +38,7 @@ struct gyro_3d_sample{
 
 const struct sensor_t GyroSensor::sSensorInfo_gyro3D = {
     "HID_SENSOR Gyro 3D", "Intel", 1, SENSORS_GYROSCOPE_HANDLE,
-        SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, RESOLUTION_GYRO, 6.10f, 1250, {}
+        SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, RESOLUTION_GYRO, 6.10f, 16666, {}
 };
 const int HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND = 0x15;
 const int HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND = 0xF012;