M5Unit-IMU 0.0.2 git rev:e5b00aa
Loading...
Searching...
No Matches
m5::unit::UnitMPU6xxx::config_t Struct Reference

Settings for begin() More...

#include <unit_mpu6xxx.hpp>

Public Attributes

bool start_periodic {true}
 Start periodic measurement on begin()?
 
mpu6886::AccelRange accel_range {mpu6886::AccelRange::G8}
 Accelerometer range.
 
mpu6886::GyroRange gyro_range {mpu6886::GyroRange::DPS2000}
 Gyroscope range.
 
mpu6886::Dlpf dlpf {mpu6886::Dlpf::BW176}
 Gyro/temp low pass filter.
 
uint8_t sample_rate_div {3}
 Sample rate divider (ODR = 1000/(1+div) Hz). 3 -> 250Hz.
 

Detailed Description

Settings for begin()

Note
Ring buffer depth is configured via component_config() (default: mpu6886::DEFAULT_STORED_SIZE)
These are the settings applied by begin(). They are not updated by the runtime setters (writeAccelRange() and friends), so config() keeps reporting what was configured – read the device with readAccelRange() etc. to find out what is in effect now