Struct sh2_SensorValue

Struct Documentation

struct sh2_SensorValue

Public Members

uint8_t sensorId

Which sensor produced this event.

uint8_t sequence

8-bit unsigned integer used to track reports.

The sequence number increments once for each report sent. Gaps in the sequence numbers indicate missing or dropped reports.

uint8_t status

bits 7-5: reserved, 4-2: exponent delay, 1-0: Accuracy

uint64_t timestamp

[uS]

uint32_t delay

[uS] value is delay * 2^exponent (see status)

sh2_RawAccelerometer_t rawAccelerometer
sh2_Accelerometer_t accelerometer
sh2_Accelerometer_t linearAcceleration
sh2_Accelerometer_t gravity
sh2_RawGyroscope_t rawGyroscope
sh2_Gyroscope_t gyroscope
sh2_GyroscopeUncalibrated_t gyroscopeUncal
sh2_RawMagnetometer_t rawMagnetometer
sh2_MagneticField_t magneticField
sh2_MagneticFieldUncalibrated_t magneticFieldUncal
sh2_RotationVectorWAcc_t rotationVector
sh2_RotationVector_t gameRotationVector
sh2_RotationVectorWAcc_t geoMagRotationVector
sh2_Pressure_t pressure
sh2_AmbientLight_t ambientLight
sh2_Humidity_t humidity
sh2_Proximity_t proximity
sh2_Temperature_t temperature
sh2_Reserved_t reserved
sh2_TapDetector_t tapDetector
sh2_StepDetector_t stepDetector
sh2_StepCounter_t stepCounter
sh2_SigMotion_t sigMotion
sh2_StabilityClassifier_t stabilityClassifier
sh2_ShakeDetector_t shakeDetector
sh2_FlipDetector_t flipDetector
sh2_PickupDetector_t pickupDetector
sh2_StabilityDetector_t stabilityDetector
sh2_PersonalActivityClassifier_t personalActivityClassifier
sh2_SleepDetector_t sleepDetector
sh2_TiltDetector_t tiltDetector
sh2_PocketDetector_t pocketDetector
sh2_CircleDetector_t circleDetector
sh2_HeartRateMonitor_t heartRateMonitor
sh2_RotationVectorWAcc_t arvrStabilizedRV
sh2_RotationVector_t arvrStabilizedGRV
sh2_GyroIntegratedRV_t gyroIntegratedRV
sh2_IZroRequest_t izroRequest
union sh2_SensorValue::[anonymous] un

Sensor Data.

Use the structure based on the value of the sensor field.