mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Set gyro overflow checking default to true (#4826)
This commit is contained in:
parent
86fd0bd1a1
commit
eccdf2d4a5
1 changed files with 1 additions and 11 deletions
|
@ -129,16 +129,6 @@ static void gyroInitSensorFilters(gyroSensor_t *gyroSensor);
|
||||||
#define GYRO_SYNC_DENOM_DEFAULT 4
|
#define GYRO_SYNC_DENOM_DEFAULT 4
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(USE_GYRO_SPI_MPU6500) \
|
|
||||||
|| defined(USE_GYRO_SPI_MPU9250) \
|
|
||||||
|| defined(USE_GYRO_SPI_ICM20601) \
|
|
||||||
|| defined(USE_GYRO_SPI_ICM20649) \
|
|
||||||
|| defined(USE_GYRO_SPI_ICM20689))
|
|
||||||
#define GYRO_CHECK_OVERFLOW_DEFAULT true
|
|
||||||
#else
|
|
||||||
#define GYRO_CHECK_OVERFLOW_DEFAULT false
|
|
||||||
#endif
|
|
||||||
|
|
||||||
PG_REGISTER_WITH_RESET_TEMPLATE(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 1);
|
PG_REGISTER_WITH_RESET_TEMPLATE(gyroConfig_t, gyroConfig, PG_GYRO_CONFIG, 1);
|
||||||
|
|
||||||
PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig,
|
PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig,
|
||||||
|
@ -155,7 +145,7 @@ PG_RESET_TEMPLATE(gyroConfig_t, gyroConfig,
|
||||||
.gyro_soft_notch_cutoff_1 = 300,
|
.gyro_soft_notch_cutoff_1 = 300,
|
||||||
.gyro_soft_notch_hz_2 = 200,
|
.gyro_soft_notch_hz_2 = 200,
|
||||||
.gyro_soft_notch_cutoff_2 = 100,
|
.gyro_soft_notch_cutoff_2 = 100,
|
||||||
.checkOverflow = GYRO_CHECK_OVERFLOW_DEFAULT
|
.checkOverflow = true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue