mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 16:03:33 +08:00
IMU_GYRO_RATEMAX set system default to 400 Hz
- MC default is still 800 Hz
This commit is contained in:
@@ -266,10 +266,6 @@ void BMI088_Gyroscope::ConfigureGyro()
|
||||
|
||||
void BMI088_Gyroscope::ConfigureSampleRate(int sample_rate)
|
||||
{
|
||||
if (sample_rate == 0) {
|
||||
sample_rate = 1000; // default to 1000 Hz
|
||||
}
|
||||
|
||||
// round down to nearest FIFO sample dt * SAMPLES_PER_TRANSFER
|
||||
const float min_interval = FIFO_SAMPLE_DT;
|
||||
_fifo_empty_interval_us = math::max(roundf((1e6f / (float)sample_rate) / min_interval) * min_interval, min_interval);
|
||||
|
||||
Reference in New Issue
Block a user