mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
Merge pull request #7895 from etracer65/dshot_bidir_disable_dual_gyro
Disallow dual gyro in "BOTH" mode if RPM filter enabled
This commit is contained in:
commit
72d0117278
4 changed files with 18 additions and 7 deletions
|
@ -457,6 +457,14 @@ static void validateAndFixConfig(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
// Temporary workaround until RPM Filter supports dual-gyro using both sensors
|
||||
// Once support is added remove this block
|
||||
#if defined(USE_MULTI_GYRO) && defined(USE_RPM_FILTER)
|
||||
if (gyroConfig()->gyro_to_use == GYRO_CONFIG_USE_GYRO_BOTH && isRpmFilterEnabled()) {
|
||||
gyroConfigMutable()->gyro_to_use = GYRO_CONFIG_USE_GYRO_1;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(TARGET_VALIDATECONFIG)
|
||||
targetValidateConfiguration();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue