Add heading to sensors_event_t
Bug: 189983308 Test: compile (definitions only) Change-Id: I01b75ecae37755bf43321d99e465a9dc42e2e318
This commit is contained in:
parent
f4e1d6a272
commit
3d9af7ccfd
1 changed files with 11 additions and 0 deletions
|
@ -358,6 +358,14 @@ typedef struct {
|
|||
};
|
||||
} limited_axes_imu_uncalibrated_event_t;
|
||||
|
||||
/**
|
||||
* Heading event data
|
||||
*/
|
||||
typedef struct {
|
||||
float heading;
|
||||
float accuracy;
|
||||
} heading_event_t;
|
||||
|
||||
/**
|
||||
* Union of the various types of sensor data
|
||||
* that can be returned.
|
||||
|
@ -452,6 +460,9 @@ typedef struct sensors_event_t {
|
|||
* SENSOR_TYPE_ACCELEROMETER_LIMITED_AXES_UNCALIBRATED for details.
|
||||
*/
|
||||
limited_axes_imu_uncalibrated_event_t limited_axes_imu_uncalibrated;
|
||||
|
||||
/* heading data containing value in degrees and its accuracy */
|
||||
heading_event_t heading;
|
||||
};
|
||||
|
||||
union {
|
||||
|
|
Loading…
Reference in a new issue