1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Add Experimental LPF parameter

This commit is contained in:
borisbstyle 2016-03-01 00:18:49 +01:00
parent 856ceee528
commit a2a58d8ccb
3 changed files with 7 additions and 3 deletions

View file

@ -582,7 +582,7 @@ void init(void)
afatfs_init();
#endif
if (masterConfig.gyro_lpf) {
if (masterConfig.gyro_lpf > 0 && masterConfig.gyro_lpf < 7) {
masterConfig.pid_process_denom = 1; // When gyro set to 1khz always set pid speed 1:1 to sampling speed
masterConfig.gyro_sync_denom = 1;
}