Adding support for a 6 DOF pose sensor
Adding a six degree of freedom sensor returning device pose.
This pose is comprised of two parts a rotation from an orientaion
pointing due north and zero pitch and roll && a translation from
an initial point of reference.
Change-Id: If9e1d5a421b81e6e388c446a5a1c19e9c08ad067
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index 4bd6c3c..b6f4a04 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -691,6 +691,26 @@
#define SENSOR_TYPE_DEVICE_ORIENTATION (27)
#define SENSOR_STRING_TYPE_DEVICE_ORIENTATION "android.sensor.device_orientation"
+/*
+ * SENSOR_TYPE_POSE_6DOF
+ * trigger-mode: continuous
+ *
+ * A sensor of this type returns the pose of the device.
+ * Pose of the device is defined as the orientation of the device from a
+ * Earth Centered Earth Fixed frame and the translation from an arbitrary
+ * point at subscription.
+ *
+ * This sensor can be high power. It can use any and all of the following
+ * . Accelerometer
+ * . Gyroscope
+ * . Camera
+ * . Depth Camera
+ *
+ * Implement only the wake-up version of this sensor.
+ */
+#define SENSOR_TYPE_POSE_6DOF (28)
+#define SENSOR_STRING_TYPE_POSE_6DOF "android.sensor.pose_6dof"
+
/**
* Values returned by the accelerometer in various locations in the universe.
* all values are in SI units (m/s^2)