From 2ea9f1064e2dc5cc4c922c753922b15a60672475 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Fri, 8 Mar 2013 15:36:44 +0100 Subject: Revert "sensors: Disable orientation due to the lack of orientationd" This reverts commit ac631010d57546b31ed5ee13e851e803b24de900. --- sensors/piranha_sensors.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sensors/piranha_sensors.c b/sensors/piranha_sensors.c index 4ffc06c..c1fd534 100644 --- a/sensors/piranha_sensors.c +++ b/sensors/piranha_sensors.c @@ -39,6 +39,8 @@ struct sensor_t piranha_sensors[] = { SENSOR_TYPE_ACCELEROMETER, 19.6f, 0.0383f, 0.13f, 10000, {}, }, { "YAS530 Magnetic Sensor", "Yamaha", 1, SENSOR_TYPE_MAGNETIC_FIELD, SENSOR_TYPE_MAGNETIC_FIELD, 800.0f, 0.3f, 4.0f, 10000, {}, }, + { "YAS Orientation Sensor", "Yamaha", 1, SENSOR_TYPE_ORIENTATION, + SENSOR_TYPE_ORIENTATION, 360.0f, 0.1f, 0.0f, 10000, {}, }, #ifdef TARGET_DEVICE_P5100 { "BH1721 Light Sensor", "ROHM", 1, SENSOR_TYPE_LIGHT, SENSOR_TYPE_LIGHT, 0.0f, 0.0f, 0.0f, 0, {}, }, @@ -56,6 +58,7 @@ int piranha_sensors_count = sizeof(piranha_sensors) / sizeof(struct sensor_t); struct piranha_sensors_handlers *piranha_sensors_handlers[] = { &bma250, &yas530c, + &yas_orientation, #ifdef TARGET_DEVICE_P5100 &bh1721, #endif -- cgit v1.1