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.dcm_kp = 2500; // 1.0 * 10000
masterConfig.dcm_ki = 0; // 0.003 * 10000
masterConfig.gyro_lpf = 1; // 188HZ
masterConfig.gyro_sync_denom = 4;
masterConfig.gyro_lpf = 0; // 256HZ default
masterConfig.gyro_sync_denom = 8;
masterConfig.gyro_soft_lpf_hz = 60;
masterConfig.pid_process_denom = 1;

View File

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