|
M5Unit-IMU 0.0.2 git rev:e5b00aa
|
#include <unit_bmi270.hpp>
Public Attributes | |
| bool | start_periodic {true} |
| Start periodic measurement on begin()? | |
| bmi270::AccelRange | accel_range {bmi270::AccelRange::G8} |
| Accelerometer range. | |
| bmi270::GyroRange | gyro_range {bmi270::GyroRange::DPS2000} |
| Gyroscope range. | |
| bmi270::AccelODR | accel_odr {bmi270::AccelODR::Rate200Hz} |
| bmi270::GyroODR | gyro_odr {bmi270::GyroODR::Rate200Hz} |
| bmi270::FilterPerf | accel_filter_perf {bmi270::FilterPerf::Performance} |
| bmi270::AccelBwp | accel_bwp {bmi270::AccelBwp::NormAvg4} |
| bmi270::FilterPerf | gyro_filter_perf {bmi270::FilterPerf::Performance} |
| Gyroscope filter performance mode. | |
| bmi270::GyroBwp | gyro_bwp {bmi270::GyroBwp::Norm} |
| Gyroscope bandwidth parameter (the chip's power-on default) | |
Settings for begin()
| bmi270::AccelBwp m5::unit::UnitBMI270::config_t::accel_bwp {bmi270::AccelBwp::NormAvg4} |
Accelerometer bandwidth parameter (the chip's power-on default). Its 3dB cutoff scales with accel_odr – 89Hz at 200Hz in the normal filter. startPeriodicMeasurement() rejects the averaging-only values while accel_filter_perf is Performance (bmi270::bwp_fits())
| bmi270::FilterPerf m5::unit::UnitBMI270::config_t::accel_filter_perf {bmi270::FilterPerf::Performance} |
Accelerometer filter performance mode. PowerOptimized also switches accel_bwp from filtering to averaging, which is what makes its Avg16 and up usable
| bmi270::AccelODR m5::unit::UnitBMI270::config_t::accel_odr {bmi270::AccelODR::Rate200Hz} |
Accelerometer output data rate (the chip's power-on default; matches gyro_odr so the AHRS layer gets accel and gyro at the same cadence)
| bmi270::GyroODR m5::unit::UnitBMI270::config_t::gyro_odr {bmi270::GyroODR::Rate200Hz} |
Gyroscope output data rate (periodic measurement interval is derived from this). 200Hz is the chip's power-on default and keeps hand-speed motion out of the under-sampled regime; lower it if power matters more than tracking fast rotation