Add heading to sensors_event_t

Bug: 189983308
Test: compile (definitions only)
Change-Id: I01b75ecae37755bf43321d99e465a9dc42e2e318
This commit is contained in:
Tyler Trephan 2022-01-21 00:04:35 +00:00
parent f4e1d6a272
commit 3d9af7ccfd

View file

@ -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 {