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

New 1000 looptime default

This commit is contained in:
borisbstyle 2016-03-05 20:49:34 +01:00
parent c9a35d278d
commit dc6529ec9e
2 changed files with 6 additions and 4 deletions

View file

@ -408,8 +408,8 @@ static void resetConf(void)
masterConfig.current_profile_index = 0; // default profile masterConfig.current_profile_index = 0; // default profile
masterConfig.dcm_kp = 2500; // 1.0 * 10000 masterConfig.dcm_kp = 2500; // 1.0 * 10000
masterConfig.dcm_ki = 0; // 0.003 * 10000 masterConfig.dcm_ki = 0; // 0.003 * 10000
masterConfig.gyro_lpf = 1; // 188HZ masterConfig.gyro_lpf = 0; // 256HZ default
masterConfig.gyro_sync_denom = 4; masterConfig.gyro_sync_denom = 8;
masterConfig.gyro_soft_lpf_hz = 60; masterConfig.gyro_soft_lpf_hz = 60;
masterConfig.pid_process_denom = 1; masterConfig.pid_process_denom = 1;

View file

@ -133,7 +133,8 @@ void setGyroSamplingSpeed(uint16_t looptime) {
masterConfig.pid_process_denom = 2; masterConfig.pid_process_denom = 2;
} }
} else { } else {
masterConfig.gyro_lpf = 1; masterConfig.gyro_lpf = 0;
masterConfig.gyro_sync_denom = 8;
masterConfig.pid_process_denom = 1; masterConfig.pid_process_denom = 1;
masterConfig.acc_hardware = 0; masterConfig.acc_hardware = 0;
masterConfig.baro_hardware = 0; masterConfig.baro_hardware = 0;
@ -159,7 +160,8 @@ void setGyroSamplingSpeed(uint16_t looptime) {
} }
} }
} else { } else {
masterConfig.gyro_lpf = 1; masterConfig.gyro_lpf = 0;
masterConfig.gyro_sync_denom = 8;
masterConfig.acc_hardware = 0; masterConfig.acc_hardware = 0;
masterConfig.baro_hardware = 0; masterConfig.baro_hardware = 0;
masterConfig.mag_hardware = 0; masterConfig.mag_hardware = 0;