Add an uncalibrated accelerometer type.
Add an uncalibrated accelerometer sensor type. Test: Build compiles. Change-Id: Iddc3b03abf0ba9beeec542eecf138b06d08355f2
This commit is contained in:
parent
3c7297a55a
commit
d1e2562a79
2 changed files with 6 additions and 1 deletions
|
@ -49,6 +49,7 @@ enum {
|
||||||
SENSOR_TYPE_DYNAMIC_SENSOR_META = 32,
|
SENSOR_TYPE_DYNAMIC_SENSOR_META = 32,
|
||||||
SENSOR_TYPE_ADDITIONAL_INFO = 33,
|
SENSOR_TYPE_ADDITIONAL_INFO = 33,
|
||||||
SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT = 34,
|
SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT = 34,
|
||||||
|
SENSOR_TYPE_ACCELEROMETER_UNCALIBRATED = 35,
|
||||||
SENSOR_TYPE_DEVICE_PRIVATE_BASE = 65536, // 0x10000
|
SENSOR_TYPE_DEVICE_PRIVATE_BASE = 65536, // 0x10000
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -164,6 +164,7 @@ enum {
|
||||||
#define SENSOR_STRING_TYPE_DYNAMIC_SENSOR_META "android.sensor.dynamic_sensor_meta"
|
#define SENSOR_STRING_TYPE_DYNAMIC_SENSOR_META "android.sensor.dynamic_sensor_meta"
|
||||||
#define SENSOR_STRING_TYPE_ADDITIONAL_INFO "android.sensor.additional_info"
|
#define SENSOR_STRING_TYPE_ADDITIONAL_INFO "android.sensor.additional_info"
|
||||||
#define SENSOR_STRING_TYPE_LOW_LATENCY_OFFBODY_DETECT "android.sensor.low_latency_offbody"
|
#define SENSOR_STRING_TYPE_LOW_LATENCY_OFFBODY_DETECT "android.sensor.low_latency_offbody"
|
||||||
|
#define SENSOR_STRING_TYPE_ACCELEROMETER_UNCALIBRATED "android.sensor.accelerometer_uncalibrated"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Values returned by the accelerometer in various locations in the universe.
|
* Values returned by the accelerometer in various locations in the universe.
|
||||||
|
@ -202,7 +203,7 @@ typedef struct {
|
||||||
} sensors_vec_t;
|
} sensors_vec_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* uncalibrated gyroscope and magnetometer event data
|
* uncalibrated accelerometer, gyroscope and magnetometer event data
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
union {
|
union {
|
||||||
|
@ -326,6 +327,9 @@ typedef struct sensors_event_t {
|
||||||
/* uncalibrated magnetometer values are in micro-Teslas */
|
/* uncalibrated magnetometer values are in micro-Teslas */
|
||||||
uncalibrated_event_t uncalibrated_magnetic;
|
uncalibrated_event_t uncalibrated_magnetic;
|
||||||
|
|
||||||
|
/* uncalibrated accelerometer values are in meter per second per second (m/s^2) */
|
||||||
|
uncalibrated_event_t uncalibrated_accelerometer;
|
||||||
|
|
||||||
/* heart rate data containing value in bpm and status */
|
/* heart rate data containing value in bpm and status */
|
||||||
heart_rate_event_t heart_rate;
|
heart_rate_event_t heart_rate;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue