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

Add 2.6KHZ Target options (For now only COLIBRI_RACE)

This commit is contained in:
borisbstyle 2016-01-12 17:41:44 +01:00
parent 77d9d1d2b9
commit 29a936e773
3 changed files with 55 additions and 24 deletions

View file

@ -47,7 +47,11 @@ void gyroUpdateSampleRate(uint8_t lpf) {
if (!lpf) {
gyroSamplePeriod = 125;
#ifdef STM32F303xC
#ifdef COLIBRI_RACE
gyroSyncDenominator = 3; // Sample every 3d gyro measurement 2,6khz
#else
gyroSyncDenominator = 4; // Sample every 4th gyro measurement 2khz
#endif
#else
if (!sensors(SENSOR_ACC) && !sensors(SENSOR_BARO) && !sensors(SENSOR_MAG)) {
gyroSyncDenominator = 4; // Sample every 4th gyro measurement 2khz