Merge "Add limited axes imu sensor type definitions."
diff --git a/OWNERS b/OWNERS
index b6b18da..53e5f73 100644
--- a/OWNERS
+++ b/OWNERS
@@ -5,3 +5,4 @@
smoreland@google.com
swillden@google.com
per-file include/hardware/camera*=etalvala@google.com
+per-file include/hardware/sensors*=bduddie@google.com
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index 3101fdc..d6bf9a9 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -296,6 +296,16 @@
};
} additional_info_event_t;
+typedef struct {
+ float rx;
+ float ry;
+ float rz;
+ float vx;
+ float vy;
+ float vz;
+ int32_t discontinuity_count;
+} head_tracker_event_t;
+
/**
* Union of the various types of sensor data
* that can be returned.
@@ -373,6 +383,9 @@
* SENSOR_TYPE_ADDITIONAL_INFO for details.
*/
additional_info_event_t additional_info;
+
+ /* vector describing head orientation (added for legacy code support only) */
+ head_tracker_event_t head_tracker;
};
union {