diff options
-rw-r--r-- | sensors/piranha_sensors.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |