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_axis_remap_t Struct Reference

A complete axis remapping: one permutation plus three sign flips. More...

#include <sfDevBMI330.h>

Public Attributes

sfe_bmi330_axis_map_t map = BMI330_AXIS_MAP_XYZ
 Axis permutation. More...
 
bool invertX = false
 Negate the reported X axis. More...
 
bool invertY = false
 Negate the reported Y axis. More...
 
bool invertZ = false
 Negate the reported Z axis. More...
 

Detailed Description

A complete axis remapping: one permutation plus three sign flips.

This is applied inside the device, so it corrects the accelerometer, the gyroscope, the FIFO and every feature-engine feature at once. A board mounted upside down under a chassis is one setAxisRemap() call, not a scatter of minus signs through the sketch.

Note
Remapping is handled by the feature engine, so it takes effect only while the engine is running. The device only accepts the commit while the accelerometer is SUSPENDED; setAxisRemap() suspends and restores it around the commit.

Member Data Documentation

◆ invertX

bool sfe_bmi330_axis_remap_t::invertX = false

Negate the reported X axis.

◆ invertY

bool sfe_bmi330_axis_remap_t::invertY = false

Negate the reported Y axis.

◆ invertZ

bool sfe_bmi330_axis_remap_t::invertZ = false

Negate the reported Z axis.

◆ map

sfe_bmi330_axis_map_t sfe_bmi330_axis_remap_t::map = BMI330_AXIS_MAP_XYZ

Axis permutation.


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