hw: sensors: Add gyro field
Change-Id: I113f0a067fccbc8d69d1949b6af3ed9e119d0355 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
committed by
Dmitry Shmidt
parent
b3ae979489
commit
3120b58768
@@ -212,6 +212,13 @@ __BEGIN_DECLS
|
|||||||
*
|
*
|
||||||
* Pressure sensors report events at a constant rate defined by setDelay().
|
* 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 {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
@@ -263,6 +270,9 @@ typedef struct sensors_event_t {
|
|||||||
/* orientation values are in degrees */
|
/* orientation values are in degrees */
|
||||||
sensors_vec_t orientation;
|
sensors_vec_t orientation;
|
||||||
|
|
||||||
|
/* angular velocity in degrees per second (dps) */
|
||||||
|
sensors_vec_t gyro;
|
||||||
|
|
||||||
/* temperature is in degrees centigrade (Celsius) */
|
/* temperature is in degrees centigrade (Celsius) */
|
||||||
float temperature;
|
float temperature;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user