diff options
author | Christian Balster <christian.balster@gmail.com> | 2015-06-02 15:08:02 +0200 |
---|---|---|
committer | forkbomb <keepcalm444@gmail.com> | 2015-11-25 08:34:40 +1100 |
commit | f7d2dfda36dfb9e35914249ce62376c4fd2e8e32 (patch) | |
tree | dd7be090fa65485c8493e074905028a663055226 /libsensors/smdk4x12_sensors.c | |
parent | a0449080d1eedfd4980b28bd6e73b177ffd73728 (diff) | |
download | device_samsung_i9300-f7d2dfda36dfb9e35914249ce62376c4fd2e8e32.zip device_samsung_i9300-f7d2dfda36dfb9e35914249ce62376c4fd2e8e32.tar.gz device_samsung_i9300-f7d2dfda36dfb9e35914249ce62376c4fd2e8e32.tar.bz2 |
i9300: libsensors: remove unused orientation sensor
The Orientation Sensor is deprecated and no longer required.
Additionally this implementation is never even used, since Android
automatically replaces it by it's own implementation if the sensor HAL
doesn't also provide a Rotation Vector sensor. Furthermore the current
implementation only uses the accelerometer and magnetometer for the
sensor fusion and doesn't make use of the Gyroscope. So should we at
some point decide to implement our own complete sensor fusion this
would have to be rewritten anyway.
Change-Id: I45d8a9afd2089b49131e6cc69cdf2f3dfee46c92
Diffstat (limited to 'libsensors/smdk4x12_sensors.c')
-rw-r--r-- | libsensors/smdk4x12_sensors.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libsensors/smdk4x12_sensors.c b/libsensors/smdk4x12_sensors.c index 3cfdeaf..353fe09 100644 --- a/libsensors/smdk4x12_sensors.c +++ b/libsensors/smdk4x12_sensors.c @@ -41,9 +41,6 @@ struct sensor_t smdk4x12_sensors[] = { { "AKM8975 Magnetic Sensor", "Asahi Kasei", 1, SENSOR_TYPE_MAGNETIC_FIELD, SENSOR_TYPE_MAGNETIC_FIELD, 2000.0f, 1.0f / 16, 6.8f, 10000, 0, 0, SENSOR_STRING_TYPE_MAGNETIC_FIELD, 0, 0, SENSOR_FLAG_ON_CHANGE_MODE, {}, }, - { "Orientation Sensor", "Exynos Sensors", 1, SENSOR_TYPE_ORIENTATION, - SENSOR_TYPE_ORIENTATION, 360.0f, 0.1f, 0.0f, 10000, 0, 0, SENSOR_STRING_TYPE_ORIENTATION, 0, 0, - SENSOR_FLAG_ON_CHANGE_MODE, {}, }, { "CM36651 Light Sensor", "Capella", 1, SENSOR_TYPE_LIGHT, SENSOR_TYPE_LIGHT, 121240.0f, 1.0f, 0.2f, 0, 0, 0, SENSOR_STRING_TYPE_LIGHT, 0, 0, SENSOR_FLAG_ON_CHANGE_MODE, {}, }, @@ -63,7 +60,6 @@ int smdk4x12_sensors_count = sizeof(smdk4x12_sensors) / sizeof(struct sensor_t); struct smdk4x12_sensors_handlers *smdk4x12_sensors_handlers[] = { &lsm330dlc_acceleration, &akm8975, - &orientation, &cm36651_proximity, &cm36651_light, &lsm330dlc_gyroscope, |