hw: sensors: Add gyro field
Change-Id: I113f0a067fccbc8d69d1949b6af3ed9e119d0355
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index 6dccddd..96fdaab 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -212,6 +212,13 @@
*
* Pressure sensors report events at a constant rate defined by setDelay().
*
+ * Gyro
+ * --------
+ *
+ * The gyroscope sensor values are returned in degrees per second (dps)
+ *
+ * Gyroscope sensor report events at a constant rate defined by setDelay().
+ *
*/
typedef struct {
union {
@@ -263,6 +270,9 @@
/* orientation values are in degrees */
sensors_vec_t orientation;
+ /* angular velocity in degrees per second (dps) */
+ sensors_vec_t gyro;
+
/* temperature is in degrees centigrade (Celsius) */
float temperature;