SparkFun BMI330 Arduino Library  v1.0.0-2-gdbddb99
Arduino Library for the SparkFun Qwiic BMI330 6-DoF IMU (Bosch BMI330)
Loading...
Searching...
No Matches
sfe_bmi330_raw_data_t Struct Reference

One triaxial reading in raw 16-bit signed counts, as the registers hold it. More...

#include <sfDevBMI330.h>

Public Attributes

int16_t x = 0
 X axis, raw counts. More...
 
int16_t y = 0
 Y axis, raw counts. More...
 
int16_t z = 0
 Z axis, raw counts. More...
 

Detailed Description

One triaxial reading in raw 16-bit signed counts, as the registers hold it.

Convert with accelRawToG() / gyroRawToDps(), or let getSensorData() do it. Keeping the raw form available matters for anything logging at rate: three int16_t are six bytes, where three floats are twelve, and the conversion can happen off the critical path.

Note
A value pinned at -32768 or 32767 means the reading saturated the selected range, not that the motion really was that large. getSaturationFlags() reports which axes clipped.

Member Data Documentation

◆ x

int16_t sfe_bmi330_raw_data_t::x = 0

X axis, raw counts.

◆ y

int16_t sfe_bmi330_raw_data_t::y = 0

Y axis, raw counts.

◆ z

int16_t sfe_bmi330_raw_data_t::z = 0

Z axis, raw counts.


The documentation for this struct was generated from the following file: