1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-21 15:25:22 +03:00

Refactor and up to date filters for Betaflight 3.4

This commit is contained in:
Miguel Angel Mulero Martinez 2018-06-04 13:51:46 +02:00
parent ba968fe940
commit 3be244e7a5
6 changed files with 413 additions and 144 deletions

View file

@ -333,16 +333,22 @@ var FC = {
};
FILTER_CONFIG = {
gyro_soft_lpf_hz: 0,
dterm_lpf_hz: 0,
yaw_lpf_hz: 0,
gyro_soft_notch_hz_1: 0,
gyro_soft_notch_cutoff_1: 0,
gyro_hardware_lpf: 0,
gyro_32khz_hardware_lpf: 0,
gyro_lowpass_hz: 0,
gyro_lowpass_type: 0,
gyro_lowpass2_hz: 0,
gyro_lowpass2_type: 0,
gyro_notch_hz: 0,
gyro_notch_cutoff: 0,
gyro_notch2_hz: 0,
gyro_notch2_cutoff: 0,
dterm_lowpass_hz: 0,
dterm_lowpass_type: 0,
dterm_lowpass2_hz: 0,
dterm_notch_hz: 0,
dterm_notch_cutoff: 0,
gyro_soft_notch_hz_2: 0,
gyro_soft_notch_cutoff_2: 0,
dterm_filter_type: 0,
yaw_lowpass_hz: 0,
};
ADVANCED_TUNING = {
@ -399,12 +405,20 @@ var FC = {
RXFAIL_CONFIG = [];
DEFAULT = {
gyro_soft_notch_cutoff_1: 300,
gyro_soft_notch_hz_1: 400,
gyro_soft_notch_cutoff_2: 100,
gyro_soft_notch_hz_2: 200,
gyro_lowpass_hz: 100,
gyro_lowpass_type: 0,
gyro_lowpass2_hz: 500,
gyro_lowpass2_type: 0,
gyro_notch_cutoff: 300,
gyro_notch_hz: 400,
gyro_notch2_cutoff: 100,
gyro_notch2_hz: 200,
dterm_lowpass_hz: 100,
dterm_lowpass_type: 0,
dterm_lowpass2_hz: 300,
dterm_notch_cutoff: 160,
dterm_notch_hz: 260,
yaw_lowpass_hz: 100,
};
}
};