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:
parent
77d9d1d2b9
commit
29a936e773
3 changed files with 55 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue