|
BNO08X Driver 0.1.0
API reference
|
One thing the driver reports, taken with Bno08x::PopEvent().
More...
#include <bno08x_types.hpp>
Public Attributes | |
| EventKind | kind {EventKind::Sensor} |
| What this event is. | |
| SensorId | sensor {SensorId::Accelerometer} |
| The sensor (Sensor, FeatureChanged, FlushDone). | |
| Accuracy | accuracy {Accuracy::Unreliable} |
| The sample's accuracy (Sensor). | |
| bool | wake {false} |
| The sample came on the wake-up channel. | |
| uint8_t | report_seq {0} |
| The report's own sequence number (Sensor). | |
| OpId | op {0} |
| The operation (OpDone). | |
| Error | error {Error::Ok} |
| The operation's outcome (OpDone). | |
| uint32_t | t_us {0} |
Host time of the sample, NowUs() domain, wrap-safe. | |
| uint32_t | hub_t_us {0} |
| Raw sensors and pose: the hub's own timestamp. | |
| std::array< int32_t, kEventValues > | v {} |
| The values. | |
One thing the driver reports, taken with Bno08x::PopEvent().
For a sensor sample v holds the report's fields in the order of the reference manual's table, as signed 32-bit integers in the report's own units (its Q point is QPoint()): for example v[0..2] = x, y, z of an accelerometer, v[0..3] = i, j, k, real and v[4] = accuracy of a rotation vector. docs/sensors.md lists every layout.